1,314 bytes added
, 09:13, 15 April 2015
C and C++ both are general-purpose programming languages , the latter being developed from the former , thus having many differences between them . Here are the major differences between the two :
<tab sep=bar head=top class=diff>
'''C ''' | '''C++'''
C is a procedural language . | C++ is an object-oriented language.
C does not support polymorphism , operator overloading and inheritance . | All these features are supported in C++.
In C scanf() and printf() functions are used for reading input and showing output respectively . | In C++ Cin>> and Cout<< are used for reading input and showing output respectively.
In C, we can call main() Function through other Functions | In C++, we cannot call main() Function through other functions.
Exception handling is not possible in C . | Exception handling is possible using try-catch blocks.
</tab>
[[Category:Engineering|Difference Between C And C++]]