C ++A C++ program is a collection of one or more functions.There must be a function called main (). Execution always begins with thefirst statement in function main ().Any other functions in your program are subprograms and are notexecuted until they are called.// Hello World C++ program Comment// from Eclipse IDE Comment#include < iostream> preprocessor directiveusing namespace std; which namespace to useint main () beginning of function named main (){ output statementcout << “Hello World!”; string literalreturn 0; send 0 to operating system} end of block for mainWhen a line begins with a # it indicates it’s a preprocessor directive.The preprocessor reads your program before it is compiled and onlyexecutes lines begging with #.#include directive causes the preprocessor to include the contents ofanother file, AKA header file, in the program.It’s called header file because it should be included at the top of theprogram.The enclosed brackets < iostream> is the name of the header file to beincluded. (The name is iostream, the brackets indicate that it’s a standardC++ header file) iostream file contains code that allows a C++ program to display outputon the screen and read input from the keyboard.We need to include this file because the cout statement prints output tothe computer screen.C++ uses namespaces to organize the names of program entities.The statement using namespace std; declares that the program will beaccessing entities whose names are part of the namespace called std.A function can be thought of as a group of one or moreprogramming statements that has a name.The name of this function is main, and the set of parentheses thatfollows the name indicates that it’s a function.The word int stands for “integer”. It indicates that the function sendsan integer value back to the operating system when it is finishedexecuting.Every C++ program must have a function called main. It’s the startingpoint of the program.The function main is ALWAYS int main ()C++ is a case-sensitive language. It regards uppercase letters as beingentirely different characters than their lowercase counterparts.All statements that make up a function are enclosed in a set of{braces}. Everything between 2 braces is the contents of the functionmain. Phases, words, or sentences inside the quotation marks “ ” is called astring, string constant, or string literal.cout is the only line in the program that causes anything to be printed onthe screen.A semicolon ; is required to mark the end of a complete statement.return 0 sends the integer value 0 back to the operating system when theprogram finishes running. The value 0 usually indicates that a programexecuted successfully.This statement is always necessary in the main function.Special Character s// Beginning of a comment# Beginning of preprocessor< > Encloses file name in #include( ) Used when naming a function{ } Encloses a group of statements“ ” Encloses string of characters; End of a programming statement