The statement starts with # symbol is called pre-processor directives. This statement tells the pre-processor to include the contents of iostream header file in the program before compilation. This file is required for input-output statements.
using namespace std;
This statement is used to instruct the compiler to use standard namespace. A namespace is a declarative location that provides a scope to the identifiers. Namespace std contains all the classes, objects and functions of the standard C++ library.
int main()
This statement is a function and used for the execution of C++ program. int means it returns integer type value.
{
This symbol represents the start of main function.
statements;
Statements are instructions that performs particular task. Statement terminator (;) is used to end every statement in C++ program.
return 0;
This statement is used to return the value to the operating system. By default, main function returns integer value 0.
}
This symbol represents the end of main function.
Quiz
Time limit: 0
Quiz Summary
0 of 5 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.