What is c?
C is a general-purpose high-level programming language. It is used to develop portable applications and firmware. C was developed by Dennis Ritchie at Bell Labs in 1970. The first main application of C is the Unix Operating System.
Features Of C language
- C contains a certain number of keywords. The set of primitives like if for, while, switch, etc.
- There are many logical and mathematical operators and also includes bit manipulators.
- We can also apply many assignments on a single level.
- C not always required the return value of functions we can also ignore it.
Some example of where we use C programming language:
- Operating System
- Application Software
- System Software
- Network driver
What is C++?
C++ is known as an Intermediate language. It was developed by Bjarne Stroustrup and it is a combination of high level and low-level language.C++ is Object Oriented programming language and it is run on Windows, Linux, Mac OS or etc Operating System.
C++ has many features with the OOPs concepts:
Difference between C and C++ programming languages
You can find many differences between C and C++. some highlighted differences are mentioned here.
|1.||Procedure Oriented Programming language.||Object Oriented Programming language.|
|2.||Focused on the Procedure.||Focused on the Data more than procedure.|
|3.||Programs are divided into small groups that is called functions.||Programs are divided into objects.|
|4.||Function can be shared through global data.||Function can only share the data of the same class.|
|5.||TOP-Bottom Approach is followed.||Bottom -Up Approach is followed.|
|6.||C is a subset of C++.||C++ is a superset of C.|
|7.||C contains 32 keywords.||C++ contains 52 keywords.|
|8.||scanf() and printf() functions are used for input/output in C.||Cin and Cout are used for input/output in C++.|
|9.||Exception Handling not supported.||it’s supports Exception Handling.|
|10.||Not Supports OOPs concept.||Supports OOPs concepts.|
|11.||stdio.h is used as header file.||iostream.h is used as header file.|
|12.||malloc() and calloc() functions is used for dynamic memory allocation, and free() for memory de-allocation.||new operator is used for memory allocation and delete operator for memory de-allocation.|