Program Statements
- There are two statements this program
- The first statement tells the computer to display the quoted phrase.
- A semicolon ; signals the end of the statement. If you leave out the semicolon, the compiler will often signal an error.
- The return 0; tells main() to return the value 0 to whoever called it, in this case the operating system or compiler.
- you can not give main() the return type of void, this is an error in new compilers.
cout <<"Welcome to this course\n";
return 0;
Comments
Post a Comment