C++ is the extension of C language. In C++, you can use C-Language features as well as new add-on features.
S.No. | C-Language | C++ Language |
---|---|---|
C is the function or procedure programming language. | C++ is the object oriented programming language. | |
C uses Top-down approach for solving the problem. | C++ uses Bottom-up approach for solving the problem. | |
C is less secure than C++ | C++ is more secure than C, because OOP's concept provide the facility of data hiding and protecting data. | |
In C Programming variable declaration is possible only in the beginning of the program. | In C++ you can declare variables any where in between the program, but before it is used. | |
C is a middle level language. | C++ is a high level language. | |
In C, programs are divided into functions. | In C++, programs are divided into classes and objects. | |
C uses printf() and scanf() function for standard input and output. | C++ uses cin>> and cout<< for standard input and output. | |
Features like function overloading and operator overloading is not present. | C++ supports function overloading and operator overloading. | |
In C, no exception handling and no template classes concept. | C++ support exceptional handling and template classes. | |
C program file is saved with .c extension. | C++ program file is saved with .cpp extension. |