Explain C++ Program:

C++ basic structure  explain

C++ Program basic structure  explain , step by step.

#include<iostream>

main(){

cout<<"Welcome to my techskills blog";

}

// #include<iostream.h>

// #include:This is a preprocessor directive. It tells the C compiler to include the contents of a file, in this case the file iostream.h .

// <iostream.h>

// This is the name of the library definition file for all Input Output streams.

// main()

// C regards the name "main" as a special case and will run this function first. If you forget to have a main function, the compiler will give you an error.

// {}

// There is a curly bracket also called braces. The body of main is enclosed in braces. Braces are very important in C++; they enclosed the blocks of the program.

// cout:

// This is known as output stream in C++. cout takes data from computer and send it to the output.

// <<

// The sign << indicates the direction of  data. It is towards cout and the function of cout is to show data on the screen.

// "Welcome to my techskills blog"

// The thing between the double quotes is known as character  string.

// ;

// There is a semicolon at the end of the above statement. This is very important. All C statement end with semicolon. Missing of a semicolon at the end of statement is a syntax error and compiler will report and error during compilation.