C++20 sections · 1024 units
Open in Course

Quiz: break and continue

Test understanding

Check Your Understanding

What does for (int i = 0; i < 6; i++) { if (i % 2 == 0) continue; cout << i; } print?

  1. A.1 3 5
  2. B.0 1 2 3 4 5
  3. C.0 2 4
  4. D.Nothing, the loop never runs
Start the roadmap to answer the quizzes and solve the challenges