Hello world program in C++

Share on facebook
Share on twitter
Share on linkedin
Share on twitter
Share on tumblr

In this basic C++ program, we will have a look at the program to print “Hello World” in C++ programming language.

If you are new to the C++ programming language, you will find it fun!

This program will help you to understand how things work in the C++ programming language.

Now let’s have a look at the code snippet.

‘Hello world’ program in C++

#include <iostream>
using namespace std;
int main() 
    cout << "Hello World!";
    return 0;


Hello World

Every C++ program starts with the main function & to print any string you have to use the inbuilt function of C++ i.e cout followed by <<.

Leave a Comment

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