// rest of line

From // to the end of a line is a comment. It is not processed by the compiler.

/* lines */

Text between /* and */ is a comment.

Do not embed one comment inside another. For example, do not write /* Here is an /* embedded comment */ */ The compiler will end the entire comment at the first occurrence of */.