Skip to content
Ben Shen edited this page Feb 23, 2019 · 12 revisions

Additional note

  • short-circuit

    • INCLUDING Logical AND operator &&, Logical OR operator ||, Conditional operator ?
  • For class iteration_statement

    • constructor for both While and Do While are BOTH Expression FIRST, then statement
  • Scope for for loop
    As is the case with while loop, if statement is a single statement (not a compound statement), the scope of variables declared in it is limited to the loop body as if it was a compound statement.

    for (;;)
        int n;
    // n out of scope
Clone this wiki locally