c++
Differences between C++ (CPP) and C programming languages
The differences between two major high level languages C and C++ are as follows:
C++ | C |
C ++ was founded by Bjarne Stroustrup in 1979. | C was founded by Dennis Ritchie between 1969 and 1973 in AT&T Bell Labs. |
C ++ supports polymorphism, encapsulation, and inheritance because it is the language of object-focused planning. | C does not support polymorphism , encapsulation, and inheritance which means that C does not support object-oriented programming. |
C ++ is a super-set of C. | C can be run by C ++ but C can not execute C ++ codes. C is a subset of C ++. |
C ++ contains 52 keywords. | C contains 32 keywords. |
C ++ is known as a hybrid language because C ++ supports both procedural paradigms and object-oriented. | To improve code, C supports procedural programming. |
Data and functions are grouped together in the form of C ++ object | Data and functions are separated by C because it is procedural programming language. |
Data is encrypted by -Encapsulation to ensure that data structures and operators are used as intended. | C does not support encryption. |
Built-in and user-defined data types are supported on C ++. | Built-in data types are based on C. |
C ++ is an object-driven language because an object-oriented program. | C is an function driven because C is procedural programming language. |
Function and user overload. ding is supported by C ++. | User function and overload are not supported in C. |
C ++ object driven language. | C is a function driven language |
Tasks can be used inside a building in C ++. | Tasks in C are not defined within buildings. |
NAMESPACE is used by C ++, which avoids word conflicts. | Word space features are not within C. |
header file is iostream.h. | header file is stdio.h. |
Reference variables are supported by C ++. | References are not supported |
Virtual and friend functions are supported. | Virtual and friend functions not supported . |
C ++ supports inheritance. | C does not support inheritance. |
C ++ is focused data instead of focusing on a method or process. | Instead of focusing on data, C focuses on the process or expert. cess. |
C ++ provides a new memory sharing operator and removes the memory sharing operator. | C provides functions: malloc() and calloc() for dynamic memory allocation(DMA), and free () for memory deletion. |
Different management is supported by C ++. | Direct support for different management is not supported in C. |
cin and cout are used input / output in C ++. | scanf and printf functions are input / output in -C. |
These are some prominient differences between C++ and C programming languages. See you in next tutorial where we will actually enter into the topics.