C++ Features

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:

  1. Simple
  2. Portable
  3. Middle-level programming language
  4. Structured programming language
  5. Rich library
  6. Memory management
  7. Fast speed
  8. Pointers
  9. Recursion
  10. Object Oriented
  11. Compiler-based

1. Simple

C++ programming language is simple to use. And it can be easily understood by any person and developed by any programmer.

2. Portable

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.

8. Pointers

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;

9. Recursion

In C++ we can call the function within the function itself. So, it provides code reusability for every function.

10. Object-Oriented

C++ is an object-oriented programming language. It consists of different concepts like abstraction, inheritance, polymorphism, inheritance, encapsulation, and polymorphism.

11. Compiler-based

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.