2.1 FUNDAMENTALS
2.1.1 Comments
The comments are put between a pair of /* and */ in C language. Such comments are called C-style comments. This is still valid in C++; however, a new symbol // (double slash) has been added for comments. A comment starts at double slash and ends at end of the line. In other words, such comments can be of maximum one line only. If you need a large comment, you must put this double slash at the start of every comment line or alternately use the /* and */ pair.
You will ask me where the comments can appear in a program. Well, the answer is anywhere, where a blank is permitted. In technical terms, comment can appear anywhere, where a separator appears. In alternate words, comment cannot appear inside a token. If myMarks ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access