Introduction of C++ Language
C++ is an object-oriented programming language developed by Bjarne Stroustrup at AT & Bell Laboratories in 1983.
Because C++ is the updated version of C itself. So it supports all the features of C as well as OOP. If the
software or program is made in C, it can be better made in C++. It is also called hybrid language due to the inclusion of
two programming languages (C and C ++) in it. C++ supports both low level and high level programming, due to which it is
known as middle language language. Many features of C++ have been used in modern language, so it is given priority in many educational institutions.
It can be defined by the following ways:
- System programming language.
- Procedure-oriented programming language.
- Structured programming language.
- Mid-level programming language
System programming language
A system programming language is used to create system software. C language is a system programming language because it can be used to do low-level programming (for example driver and kernel). It is generally used to
create hardware devices, OS, drivers, kernels, etc. For example, Linux kernel is written in C. It can't be used for internet programming like Java, .Net, PHP, etc
C as a procedural language
A procedure is known as a function, method, routine, subroutine, etc. A procedural language specifies a series of steps for the program to solve the problem. A procedural language breaks the program into functions, data structures, etc.
C is a procedural language. In C, variables and function prototypes must be declared before being used.
C as a structured programming language
A structured programming language is a subset of the procedural language. Structure means to break a program
program into parts or blocks so that it may be easy to understand. In the C language, we break the program into functions. parts usingIt makes the program easier to understand and modify.
C as a mid-level programming language
C is considered as a middle-level language because it supports the feature of both low-level and high-level languages. C language program is converted into assembly code, it supports pointer arithmetic (low-level), but it is machine independent (a feature of high-level).
A Low-level language is specific to one machine, i.e., machine dependent. It is machine dependent, fast to run. But it is not easy to understand. A High-Level language is not specific to one machine, i.e., machine independent. It is easy to understand.
Importance of C Programming Language
- C language is a very simple language.
- There is only 32 keywords so it is easy to learn.
- C language is highly portable.
- C is middle level language.
- C is very fast execution speed.