Features of C++ Language

Features of C++ Language

C++ is an object-oriented programming language. It provides a lot of features that are given below.

1) Simple

C++ programming language is a simple language and it provides a structured approach means to break the problem into parts, a rich set of library functions, data types and it is easy to understand and learn.

2) Machine Independent or Portable

C programs can be executed on different machines with some bit or no change but it is not platform-independent. C++ is a platform-dependent language and C++ programs can be executed in many machines with machine-specific changes.C++ is used to develop system applications such as the kernel. It supports features of high-level language so it is called s mid-level language.

3) Structured programming language

C++ is a structured programming language that means any C++ program can be achieved in parts using functions, we can break the program into parts using functions so, it is easy to understand and modify.

4) Rich Library

C++ provides a lot of inbuilt functions that make the development fast.

    • <iostream>: It contains C++ standard input and output functions
    • <iomanip>: It contains stream manipulators that format streams of data
    • <cmath>: It contains math library functions
    • <cstdlib>: It contains function for conversions of numbers to text and vise versa, memory allocation, random numbers, and various other utility functions.
    • <ctime>: It contains a function for manipulating the time and date

5) Memory Management

It supports the feature of dynamic memory allocation. we can free the allocated memory at any time by calling the free() function in C++.

6) Speed

The compilation and execution time of the C++ Programming language is fast.

7) Pointer

C++ provides the feature of pointers and it can directly interact with the memory by using the pointers. We can use pointers for memory, structures, functions, array etc.

8) Recursion

We can call the function within the function in C++. C++ programming language provides code reusability for every function.

9) Extensible

 It can easily adopt new features so the C++ language is extensible.

10) Object-Oriented

C++ is an object-oriented programming language. object-oriented programing language makes it easy to develop and maintain and in Procedure-oriented programming language, it is not easy to manage if code grows as project size grows.

11) Compiler based

C++ is a compiler-based programming language. No C++ program can be executed without compilation. First, compile the program using the compiler and then execute our program.

 

Read more, Syntax in C++

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *