Home »
C++ programs »
C++ basic programs
C++ program to print Hello World/First Program in C++
Learn, how can we start writing C++ programs, how to write a C++ program with this basic program to print "Hello World!".
[Last updated : March 01, 2023]
Printing Hello World in C++
This is the first program in c++ without using class; in this program we will learn how to print hello world or any message in c++ programming language.
Hello world/first program in C++.
/*C++ program to print "Hello World". */
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!";
return 0;
}
Output
Hello World!