Everybody in the IT world knows about C and C++. Both are Computer Languages. C and C++. C++ was born after C language, C++ is a super set ofC. Both languages have lots of differences between them. But, I am listing out the 10 Main Difference Between C and C++ languages
C Language
- C Language is not an object oriented language.
- C is a procedural programming language.
- supports only Structures.
- does not have reference variable, only supports pointers.
- uses Scanf and Printf for input and output functions.
- functions can’t be included in structures.
- regarded as a low-level language.
- doesn’t support inline functions, instead can be used via #define directive.
- uses the top-down approach.
- C is function driven.
C++ Language
- C Language is a object oriented language (includes 4 OOPs concepts).
- C++ is not a procedural programming language.
- supports Classes and Objects.
- supports both reference and pointer variables.
- uses cin>> and cout<< for input and output functions.
- functions can be included in structures.
- regarded as mix of low-level and high-level language.
- supports inline functions.
- uses the bottom-up approach.
- C++ is Object driven.
I admit there can be ‘n’ number of differences, But I have mentioned only the important
No comments:
Post a Comment