what is the purpose of break statment
Answers
Answered by
2
Answer:
The break in C or C++ is a loop control statement which is used to terminate the loop. As soon as the break statement is encountered from within a loop, the loop iterations stops there and control returns from the loop immediately to the first statement after the loop.
Explanation:
Answered by
1
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 .
Similar questions
Social Sciences,
1 month ago
English,
1 month ago
Math,
3 months ago
Math,
9 months ago
History,
9 months ago