What is C++?

C++ is a high-level programming language developed mainly by improving the shortcoming of a general purpose language used at that time known as the C language. The C language has some shortcomings which are further removed by mounting various concepts of other languages, mainly Simula. Though C++ was influenced by other languages too, the main impact was of ‘Simula’ which is a low-level programming language. The developer of C++ language, Bjarne Stroustrup tried to develop a language which is as easy as ‘C’ and should be as fast as ‘Simula’. And so was developed in the form of C++ and get its first release in 1985.

Later, many higher versions of C++ were released and now in 2017, it is the third popular programming language after Java and ‘C’. C++ is based on object-based programming and inherits most of the ‘C’ language’s features and advance them to abstraction with easy hardware access. The C++ language added classes to C. This provides the four features commonly present in Object Oriented Programming languages. These are the abstraction, encapsulation, inheritance, and polymorphism.

Syntax of basic program in C++

The C++ uses the header file to include inbuilt functions so you have to include header file at the top of each program and also you have to make the main function as the program is always executed from the main function so it is important to include it in your program.

First C++ program to print Hello

#include<iostream.h>                           // Header file to include basic input and output functionality

void main()                                              //main function which is a global function to start execution


cout<<”Hello”;                                       //used to print Hello on the output screen



The ‘{ }’ are used to wrap the content inside any block of a program. In this case, the brackets are used to wrap the body of the main function. The ‘void’is a keyword used to return ‘null’ value from the function.