Comments

C++ allows comments that begin with // and end with the end of the line:

int rank;   // rank goes from 0 (lowest) to 10

The C90 standard doesn't allow this comment format, but many compilers do. The C9X proposal recognizes this usage.

Get C Primer Plus®, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.