exaplain the structure of simple c++ program.
Answers
Answered by
3
A c++ program is given below:
#include<iostream.h>
{ int main ( )
cout<<" BRAINLY IS A PLATFORM OF GENIUSES";
return 0;
}
1. iostream - headerfile.
2. int main - here the execution of program begines.
3. cout- an object of iostream that is used to print values.
4. << put to opertaor.
5. "BRAINLY IS A PLATFORM OF GENIUSES" - statement in c++ whatever is print as it is in program as well on screen is called statement.
6. ; - semicolon used to terminate the every executable line
7. return 0 - return to a program zero.
*** { } - Braces - used to terminate a c++ block
#include<iostream.h>
{ int main ( )
cout<<" BRAINLY IS A PLATFORM OF GENIUSES";
return 0;
}
1. iostream - headerfile.
2. int main - here the execution of program begines.
3. cout- an object of iostream that is used to print values.
4. << put to opertaor.
5. "BRAINLY IS A PLATFORM OF GENIUSES" - statement in c++ whatever is print as it is in program as well on screen is called statement.
6. ; - semicolon used to terminate the every executable line
7. return 0 - return to a program zero.
*** { } - Braces - used to terminate a c++ block
Similar questions