C++ Programs

C++ program to print ‘‘hello world’’ text

It is first program of c++ language, in this program Plane text is print on screen.

To print the text on screen cout is used.


#include <iostream>

using namespace std;

void main()


    cout << "Hello World";


When Run The Program Following Output:

Hello World


C++ Program start their execution from the main() function. This function declared as void so it doesn’t return any value.

Body of main() start from curly braces {  and end with }

And cout <<  is used to print text on screen.

For ex: cout << "Hello World";

Releted Programs

© 2017 codewmAll rights reserved. (by Wallipasha Mujawar)