Q. What is the primary purpose of the break statement?
Solution:
The break statement terminates the nearest enclosing loop (for, while, do-while) or switch statement.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.