Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This noncompliant code example creates a macro definition for a for loop in the program. for loops should require braces, even if it contains only a single body statement (see EXP19-C. Use braces for the body of an if, for, or while statement). This macro takes an integer argument which is the number of times the loop should run. The programmer has provided a semicolon at the end of the macro definition by mistake.

...