Comments are the statements which are not executed by the compiler. Comment indicates the purpose of program so that others also can easily understand.
There are 2 types of comments:-
1. // - Single line comment.
2. /* */ - Multi line comments.
Any number of comments can be placed anywhere in the program. Comment is useful when a team is building a project it helps other person to understand easily about the code.
Compiling and Execution
Once the program has been written it need to be converted into machine language (0 and 1) before the machine can execute it. This conversion is done by compiler. Compiling the program make an EXE file (Executable file). If we copy this file to another machine we can execute it without recompiling it.