You are not logged in. Please login at www.codechef.com to post your questions!

×

c and c++ compare.

is there a difference between c and c++? i mean keeping aside the oops concept in c++, is there any advantage of c over c++ and vice versa? If a person knows c++ does it imply he can work in c without any prior training.

asked 09 Mar '15, 22:11

rishu97kr's gravatar image

2★rishu97kr
2528
accept rate: 0%


Talking about advantages in C++,

SO C++ contains a powerful Standard Template Library which is the main reason mostly all top level coders code in C++.
C++ is equally fast as of C.
Just change header file and make few necessary changes in code your .C code will be transformed into .Cpp code.
It is easy to learn and implement STL which helps a lot while coding, and if talking about C it do contains any STL.

To get hands over STL check this link:
http://community.topcoder.com/tc?module=Static&d1=features&d2=082803

Answering to your last question so i feel yes if a person knows C++ concepts it do imply that he/she can work in C without any prior training.

link

answered 10 Mar '15, 00:23

rishabhprsd7's gravatar image

2★rishabhprsd7
1.9k11243
accept rate: 14%

edited 10 Mar '15, 00:25

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,918
×1,491
×226
×205
×15
×11

question asked: 09 Mar '15, 22:11

question was seen: 681 times

last updated: 10 Mar '15, 00:25