Sr.No. |
C Language |
C++ Language |
1 |
C was developed by Dennis Ritchie between the year 1969 and 1973 at AT&T Bell Labs. |
C++ was developed by Bjarne Stroustrup in 1979. |
2 |
C does no support polymorphism, encapsulation, and inheritance which means that C does not support object oriented programming. |
C++ supports polymorphism, encapsulation, and inheritance because it is an object oriented programming language. |
3 |
C is a subset of C++. |
C++ is a superset of C. |
4 |
C contains 32 keywords. |
C++ contains 63 keywords. |
5 |
For the development of code, C supports procedural programming. |
C++ is known as hybrid language because C++ supports both procedural and object oriented programming paradigms. |
6 |
Data and functions are separated in C because it is a procedural programming language. |
Data and functions are encapsulated together in form of an object in C++. |
7 |
C does not support information hiding. |
Data is hidden by the Encapsulation to ensure that data structures and operators are used as intended. |
8 |
Built-in data types is supported in C |
Built-in & user-defined data types is supported in C++. |
9 |
C is a function driven language because C is a procedural programming language. |
C++ is an object driven language because it is an object oriented programming. |
10 |
C is a function-driven language. |
C++ is an object-driven language |