What is difference between C and C++? tccicomputercoaching.com

Page 1

What is difference between C and C++? tccicomputercoaching.com C and C++ both are programming Languages. But the major difference between C and C++ is that C is a procedural programming language and does not support classes and objects, while C++ is a object oriented programming language; C is a subset of C++. While C++ is a superset of C.

Approach: Top down approach is used in Program Design. Bottom up approach adopted in Program Design. Input / Output Function: In C  scanf() Function used for Input.  printf() Function used for output. In C++  

Cin>> Function used for Input. Cout<< Function used for output.

Virtual Function: C has no support for virtual and friend functions. The concepts of virtual Functions are used in C++. Polymorphism: In C, Polymorphism is not possible.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.