The break statement causes an exit ............................
(i) only from the innermost loop
(ii) only from the innermost switch
(iii) from all loops and switches
(iv) from the innermost loop or switch
Answers
Answered by
3
IV) from the innermost loop or switch
Answered by
0
The break statement causes an exit from the innermost loop or switch
Break Keyword
- The break keyword is used to exit the loop and remove the program control. Inside loops or switch statements, the break statement is utilized. Breaking the loop one by one is done with the break statement.
- The break statement terminates the nearest enclosing loop or conditional statement it appears in. If there is one, control is passed to the statement that comes after the end of the statement.
Similar questions