Check what you learned about for loops and ++.

  1. 1. What does for (int i = 0; i < 3; ++i) { std::cout << i; } print?

  2. 2. In for (A; B; C), which part runs only once, before the loop starts?

  3. 3. What does int x = 5; std::cout << x++; print?

  4. 4. What does int x = 5; std::cout << ++x; print?

  5. 5. How many times does for (int i = 10; i > 0; i -= 2) run its body?

  6. 6. In a for loop, does the step part (like ++i) still run after continue?