Comments
Single line (aka C++ -style comments)
SyntaxMultiple lines (aka C-style comments)
Usage
- // ...
Examples
- Comments the rest of the current line.
- //, /*, and */ within the comment are ignored.
// This entire line is commented.
int i = 1; // The end of this line is commented.
Syntax
Usage
- /* ... */
Examples
- Comments a block of one or more lines.
- Cannot be nested.
- /* and // within the comment are ignored.
/* This is a comment. */
/* These lines
are comments. */
/**
* These lines
* are fancy comments
*/