Comments
![]()
Comments are explanatory remarks, in plain English, that help to clarify what
| the complete program is about, | |
| a group of statements is supposed to do, | |
| one line is meant to do |
We mark the beginning of a comment with the symbols /*.
We place the symbols */ at the end of a comment.
Example:
C ignores all comments when compiling a program. Comments are there strictly for the writer and anyone else who reads the program. A comment can be placed anywhere in a program,
| on a line by itself, | |
| on a line containing a program statement, including in the middle of the statement, | |
| across two or more lines. |
There is one restriction, you can not put one comment inside of another. But why would you want to anyway?
Click on the link below to see the comments that should make up the beginning of all of your programs.