Comments


Single line (aka C++ -style comments)
Syntax
  • // ...
Usage
  • Comments the rest of the current line.
  • //, /*, and */ within the comment are ignored.
Examples
// This entire line is commented.
int i = 1;  // The end of this line is commented.

Multiple lines  (aka C-style comments)
Syntax
  • /* ... */
Usage
  • Comments a block of one or more lines.
  • Cannot be nested.
  • /* and // within the comment are ignored.
Examples
/* This is a comment. */

/* These lines
   are comments. */

/**
 * These lines
 * are fancy comments
 */