Difference between C and C++ language? by R4R Team

Difference between C and C++:

-C is procedure language while C++ is object oriented programming language.
-No virtual function are present in C while virtual function are easy to make in C++.
-In C, polymorphism is not possible, which in C++ function overloading is the example of the polymorphism.
-Operator overloading is not possible in C, which possible in C++
-Top down approach is used in C, while in C++ bottom up approach is followed.
-Multiple Declaration of global variable are allowed in C, while in C++ this is not possible.
-scanf() and printf() are used for input/output operation in C language, while in C++ we use cin>> and cout<< for input/output
-We can call the main() function from other function in C, but in C++ this is not possible.




Leave a Comment: