|
- Even though C and C++ programming languages are belonging to middle level languages, both are differed in below.
-
C is structure/procedure oriented programming language whereas C++ is object oriented programming language.
- C language program design is top down approach whereas C++ is using bottom up approach.
- Polymorphism, virtual function, inheritance, Operator overloading, namespace concepts are not available in C programming language. Whereas C++ language supports all these concepts and features.
- C languages give importance to functions rather than data. Whereas C++ gives importance to data rather than functions.
- So, data and function mapping is difficult in C. But, data and function mapping is simple in C++ that can be done using objects.
- C language does not support user define data types. Whereas C++ supports user define data types.
- Exception handling is not present in C programming language. Whereas exception handling is present in C++ language.
- C language allows data to freely flow around the functions. But, data and functions are bound together in C++ which does not allow data to freely flow around the functions.
|