Basic Syntax of C++ and Hello world code explained

#include<iostream>

int main()

{ 

std::cout<<"Hello World";

}

OUTPUT

Hello World


 #include<iostream>

# - Preprocessor directive

iostream - Header ( processing before time )

int main 

main - Function name

{ - indicates the begging of the main function.

} - closing of the main function.

std:: cout << " Hello World ";

std :: - standard character output

cout - character output

""  used before writing the Character and also end with that.

<< ; insertion operator 

; - This tell us the end of the line

Comments

Popular posts from this blog

Car Mileage Problem