Question 12
Back to Exercise
In nested loops, what does break outer; do, where outer labels the outer loop?
- A Leaves only the inner loop
- B Leaves the outer loop (and therefore both loops) Correct
- C Jumps to the label and restarts
- D Compile error
Correct Answer: Option B
continue outer would move to the next iteration of the outer loop.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!