MASIGNASUKAv102
6510051498749449419

C vs C++ Comparison - Learn With AVRK

Add Comments
Saturday, August 7, 2021
Loading...


What is C ?

C programming is a  procedural oriented programing language which is machine-independent.

C language is the base of programming language that may be used to develop Operating Systems and makes hard programs like Oracle database, and lots of more. C programing language may be called as a mother of programing language because it forms the base for other programming languages. If we all know the C language, then we are able to easily learn other programming languages. C language was developed by the nice scientist Dennis Ritchie at the Bell Laboratories. It have some additional features that make it unique from other programming languages.

What is C++ ?

C++ is a general purpose, case-sensitive programming language that supports object-oriented, procedural and generic programming. C++ is founded by the great scientist  Bjarne Stroustrup at Bell Labs in 1980. C++ is to much similar to C and it is also compatible with C that's why we can run 99% C program in C++. C++ supports object-oriented programming features, So it's secure and well-structured programming language as compare to C.

Understand the differences between C and C++.


No. C C++
1) C language follows the procedural style programming. C++ language supports both procedural and object oriented programming.
2) Data or information is less secured in C. In C++, we can use modifiers for class members to make it inaccessible for outside users.
3) C language follows the top-down approach. C++ language follows the bottom-up approach.
4) C language doesn’t support function overloading. C++ language supports function overloading.
5) In C language, we cannot use functions in structure. In C++ language, we can use functions in structure.
6) C language doesn’t support reference variables. C++ language supports reference variables.
7) In C language, Scanf() and Printf() are mainly used for input/output. C++ language uses stream Cin and Cout to perform input and output operations.
8) In C language, Operator overloading is not possible. Operator overloading is possible in C++ language.
9) C programs are divide into procedures and modules C++ programs are divide into functions and classes.
10) C language doesn’t provide the feature of namespace. C++ language supports the feature of namespace.
11) Exception handling is not easy in C. C++ supports exception handling using Try and Catch block.
12) C language doesn’t support the inheritance. C++ language supports inheritance.



Also check out this : What is Cryptography and It's Types - Learn With AVRK
Learn With AVRK

Learn With AVRK