Two forms of comments are supported: delimited comments and single-line comments.
A delimited comment is wrapped inside the /* */ characters. Delimited comments can occupy a portion of a line, a single line, or multiple lines. The following example includes a delimited comment:
/* This is some sample multi-line comment.
Syntax and code will not be parsed inside this.
*/
A single-line comment begins with characters // and extends to the end of the line. The following example includes a single-line comment:
a = 0; // initializing variable with 0
b = 1; // initializing variable with 1
Comments don't nest. The character sequences /* and */ have no special meaning within a single-line comment, and the character sequences // and /* have no special meaning within a delimited comment. Comments are not processed within character and string literals.