Report Bug
Qus : What happens if you use a break statement inside a nested loop?
QusWhat happens if you use a break statement inside a nested loop?

A. It breaks out of both loops.
B. It only breaks out of the innermost loop.
C. It causes a compile-time error.
D. It stops the program.


Solution
B. It only breaks out of the innermost loop.






Report Bug