Q. 1 Discuss the use of the break statement?
Answers
Answered by
6
When a break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop. It can be used to terminate a case in the switch statement (covered in the next chapter).
Similar questions