What is Difference Between C/C++

What is Difference Between C/C++

In C passing value to a function is "Call by Value" whereas in C++ its "Call by Reference"
2.C does not have a class/object concept.
C++ provides data abstraction, data encapsulation, Inheritance and Polymorphism.
3.C++ supports all C syntax.
File extension is .c in C while .cpp in C++.(C++ compiler compiles the files with .c extension but C compiler can not!)
4.In C structures can not have contain functions declarations. In C++ structures are like classes, so declaring functions is legal and allowed.
C++ can have inline/virtual functions for the classes.
c++ is C with Classes hence C++ while in c the closest u can get to an User defined data type is struct and union.

By:Umang
Date:2001-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher