C++ Features: In this, we are going to learn the features of C++ i.e. the main features which make C++ more powerful than other languages.
Features of C++
There are different types of features present in C++. They are as follows:
- Middle-level programming language
- Structured programming language
- Rich library
- Memory management
- Fast speed
- Object Oriented
C++ programming language is simple to use. And it can be easily understood by any person and developed by any programmer.
When you write and compile any C++ program on windows operating system, it can easily run on any operating system.
3. Middle-level Programming language
As we have already learned before that C++ is a low-level programming language. It is nothing but a combination of both low and high-level languages. And also it used for developing system applications such as the kernel, drivers, etc;
4. Structured Programming Language
C++ programming language is a structured programming language i.e. we can break the program into parts using functions. So, that we can easily understand and modify it.
5. Rich Library
In C++, we are having a lot of built-in functions which makes the development fast.
6. Memory Management
C++ supports the features of dynamic memory allocation. So in C++, we can freely allocate the memory anytime by calling the free( ) function.
7. Fast Speed
In C++ compilation and execution time is fast.
In C++ we are having the features of pointers. So, that we are can directly with the memory using pointers. While we can use the pointers for memory, structures, array, etc;
In C++ we can call the function within the function itself. So, it provides code reusability for every function.
C++ is an object-oriented programming language. It consists of different concepts like abstraction, inheritance, polymorphism, inheritance, encapsulation, and polymorphism.
We can say that C++ is compiler based language because without compilation no C++ program will be executed. Initially, we have to compile our C++ program and then execute the program.