C vs C++

 

                        C

 

                        C++

C programming language was developed by Dennis Ritchie C++ programming language was developed by Bjarne Stroustrup
It is a structural programming language It is both object-oriented and structural programming language
Data and functions are the free entries in C program language Data and functions are encapsulated together in the form of a project in C++ program language.

 

Data can be accessed by the world. Therefore, C program does not support data hiding. Data cannot be accessed by the world. Therefore, C++ program support data hiding.
It supports either function nor operator overloading. It supports both functions and overloading.
Functions cannot be implemented inside the structures in C program language Functions can be implemented inside the structures in C++ program language
In C program language reference variables are not supported In C++ program language reference variables are supported
Virtual and friend functions does not support in C program language Virtual and friend functions support in C++ program language
Scanf() and printf() are mainly used for input/output in C program language Stream cin and cout are mainly used to perform input and output operations.

Categorized in:

C++

Tagged in:

, , , , , , , , , ,

Share Article:

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO