C++ is an object-oriented programming language. It was developed by Bjarne Stroustrup at AT & T Bell Laboratory in Murray Hill, New Jersey, USA in 1979. C++ is a superset of C. C++ has solved many other problems faced by C programmers. C++ is a versatile language for handling very large programs. C++ is a case sensitive programming language. Most of the C concept applies to C++ also. The most important facilities that C++ adds is the concept of OOP's (Object Oriented Programming).
C++ Features
C++ has following features and here we discuss some important features of C++.
Simple: C++ program is written in simple English language, so that it is very easy to understand and developed by programmer.
Platform dependent: A language is said to be platform dependent, if the program is execute on the same operating system where it was developed and compiled. C++ is a platform dependent language.
Portability: It is the concept of carrying the instruction from one system into another system. In C++, .cpp file contain source code, .exe file contain application (executable file). When we write and compile any C++ program on window operating system that program can easily run on other window based system. Hence, C++ is a portable language.
Case sensitive: C++ is a case sensitive programming language means lowercase letter is different from uppercase letter.
Compiler based: C++ is a compiler based programming language, it means without compilation no C++ program can be executed. First we need compiler, to compile the program (machine code) and then we can execute it.
Syntax based language: C++ is a strongly tight syntax based programming language. If any language follow rules and regulation very strictly known as strongly tight syntax based language
Mid-level programming language: C++ is also used for low level programming. It is used to develop system applications such as kernel, driver etc. C++ also support the feature of high level language. That is why it is known as mid-level programming language.
Structured programming language: C++ is a structured programming language it breaks the large problem into smaller parts. So, it is easy to understand and modify.
Memory Management: C++ supports the feature of dynamic memory allocation. In C++, we can free the allocated memory at any time by calling the free() function.
Object Oriented: C++ is object oriented programming language. OOPs makes development and maintenance easier where as in Procedure-oriented programming language it is not easy to manage large projects.
C++ Features
C++ Advantages
There are many advantages of C++. Some of them are listed below:
C++ is much suitable for large projects.
C++ Programming is easy to maintain and modify.
C++ forced to declare functions so that the compiler can check their use.
C++ has a feature called references that allows more convenient handling of addresses for function arguments and returned values.
Template feature reuses same source code with automatic modification for different classes.
The main advantage of C++ is that, it supports object oriented features.