← BYTES
C·Starter·Ref: 7.1.19

How do you write a single-line comment in C (C99 and later)?

Have a question about this video? Mention reference 7.1.19 when you contact us.

a.# this is a comment
b.' this is a comment
c.<!-- this is a comment -->
d.// this is a comment
// begins a comment that extends to the end of the line (a C99 addition, borrowed from C++); the older /* ... */ block-comment form has always been standard C and can span multiple lines.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES7119#C