Introduction of C++

C++ was developed by Bjarne Stroustrup in 1979.

C++ is both procedural  and object oriented programming language.

C++ is a programming language that contains the feature of C programming language as well as includes a concept of object Oriented language. C++ programming  introduced the concept of Class and Objects.

C++  is a  high-level language which can be easily read and written by any one.

C++ is a case-sensitive programming language. Thus, “HELLO” and “Hello” two different identifiers in C.

Differences between C and C++

C language was developed by Dennis Ritchie in 1972 at AT&T Bell Labs.C++ was developed by Bjarne Stroustrup in 1979.
C is procedural programming language.C++ is both procedural and object oriented programming language.
C is a function-driven language.C++ is an object-driven language
The file extension of a C program is .cThe file extension of a c+ + program language is.cpp
C programming does no support polymorphism, encapsulation, and inheritance because C language does not support object oriented programming. C++ programming supports polymorphism,encapsulation, and inheritance because it is an object oriented programming language.
C language contains 32 keywords. C++ language contains 52 keywords.
C does not support information hiding.C++ support data hiding by the Encapsulation .
C language does not support function and operator overloading. C++ language support function and operator overloading.
Header file used by C is stdio.h.Header file used by C++ is iostream.h.
Virtual and friend functions are not supported by C.Virtual and friend functions are supported by C++.
C does not support inheritance.C++ supports inheritance.
C language uses malloc() and calloc()functions for dynamic memory allocation, and free() for memory de-allocation.C++ language uses new operator for memory allocation and delete operator for memory de-allocation.
In C language, variable should be defined at the beginning of the program. In C++ we can declare variables anywhere in the function.
for input/output in C language uses a scanf() and printf() functions .cin and cout are used for input/output in C++ language.