C++ Hellow World Program
A simple C++ program to display "Hello, World!" on the screen. Since it's a very simple program, it is often used to illustrate the syntax of a programming language.
Hello World Program:-
#include
using namespace std;
int main()
{
cout << "Hellow World";
return 0;
}
Output
Hello, World!
Every C++ program starts from the functionmain().
The is cout the standard output stream which prints the "Hello, World!" string on the monitor.
The return 0; is the Exit status" of the program.
No comments:
Post a Comment