Skip to content
Justice Tech School

Comments

// starts a single line comment (C99 and later) and /* ... */ spans many lines.

Example
// a single line comment
printf("shown\n"); // trailing comment
/* a comment
   over two lines */
printf("also shown\n");

Result

shown
also shown

Exercise

Close the block comment.

/* note 

Quiz Test

Which is a single line comment?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.