|
|
C++ and C99 define two styles of comments. The first is a multiline comment. It begins with a /* and is terminated with a */. Anything between the comment symbols is ignored by the compiler. A multiline comment can extend over several lines.
The second type of comment is the single-line comment. It begins with a // and ends at the end of the line.
Multiline comments are the only type of comment supported by C89. However, many C89 compilers will accept single-line comments even though they are nonstandard.
|
|