55.6k views
0 votes
What does a break statement do

User Rikkatti
by
7.1k points

1 Answer

5 votes

The break statement in C programming has the following two usages − 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

User Kyle Boon
by
8.0k points