Comments are for humans. The compiler ignores them.
A comment is a note to a human. The compiler skips it completely, so it never changes what the program prints. You write comments so the next reader — including future you — knows why a line exists.
ignored by gcc
Humans read it; the CPU never does.this is the real work
Only statements produce output.Kodin C
Same result with or without the comment.Each step highlights the matching C line. Program output appears only when a line that prints actually runs.
Five questions. Pick one answer each, then Check answers. The correct choice turns green.
1. Does a comment change the program output?
Comments are for humans.
2. Which comment can wrap several lines?
Block comments span lines.
3. What still runs in this lesson?
Only the statement prints.
4. Why write a comment here?
Intent, not speed.
5. If you comment out printf, output is:
No statement means no output.