Blog

15 Nov 2019

What is the difference between C and C++?

Difference between C and C++ : Another hot Question that is often asked in interviews or viva for college students. So here are few of them and of course, there may be some more points which have been mentioned below:- 

Difference between C and C++

Sr. No.CC++
1C is a procedural languageC++ is Object Oriented Language.
2C is older than C++C++ is also known as C with Classes.
3In C classes are not allowedIt Supports class and other features like inheritance , constructor,destructor …etc.
4In C we can’t incorporate operator overloadingIn C++ we can use operator overloading.
5Few features like function overloading, function overriding are not supported.All these are fully supported in C++.
6For Dynamic memory allocation generally malloc() is being usedHowever new operator serves the same purpose in C++.
7No mechanism for handling exceptionsException Handling is Supported in C++.

 So these were the major difference between C and C++.