What is the difference between C and C++ ?

 
 

What is the difference between C and C++ other than C++ being Object oriented ?
PS - This question is often asked in interviews :) and I know the answer, just want to know what other think.

Posted Answers

1. in c we can declare an identifer of 32 characters long
while in c++ no such constraint apply on length.
2. in c we need not to initialize a const variable, by default it take 0
whlie in c++ we need to do that.


Answer by: Anonymous
 
 

1.c does'nt uses the concept of classes but c++ is " c with classes"(c++ enforces data hiding,abstraction,encapsulation but c not)
2.c++ implements polymorphism that c do not implement


Answer by: Anonymous