Example & Tutorial understanding programming in easy ways.

What is the difference between C and C++ language?

C language C++ language
C language was developed by Dennis Ritchie. C++ language was developed by Bjarne Stroustrup.
C is a structured programming language. C++ is object oriented programming language
C is a subset of C++. C++ is a supreset of C.
In C language, data and functions are the free entities. In the C++ language, both data and functions are encapsulated together in the form of a project.
C does not support the data hiding. Therefore, the data can be used by the outside world. C++ supports data hiding. Therefore, the data cannot be accessed by the outside world.
C supports neither function nor operator overloading. C++ supports both function and operator overloading.
In C, scanf() and printf() are mainly used for input/output. C++ mainly uses stream cin and cout to perform input and output operations.

Read More →