C is a subset of C++. While C++ is a superset of C.
Top down approach is used in Program Design.
Bottom up approach adopted in Program Design.
Input / Output Function:
- scanf() Function used for Input.
- printf() Function used for output.
- Cin>> Function used for Input.
- Cout<< Function used for output.
C has no support for virtual and friend functions. The concepts of virtual Functions are used in C++.
In C, Polymorphism is not possible.
The concept of polymorphism is used in C++. Polymorphism is the most Important Feature of OOPS.
Operator overloading is not possible in C.
Operator overloading is one of the greatest Feature of C++.
No namespace Feature is present in C Language.
Namespace Feature is present in C++ for avoiding Name collision.
Multiple Declarations of global variables are allowed.
Multiple Declarations of global variables are not allowed.
Data and functions are separate and free entities.
Data and functions are encapsulated together in form of an object.
C does not support reference variables. C++ supports reference variables.
Dynamic Memory Allocation:
calloc()functions for dynamic memory allocation, and
free() for memory de-allocation.
new operator for memory allocation and
delete operator for memory de-allocation.
To learn more about C Language, C++ Language, Other Programming Languages
Call us @ 9825618292