First page Back Continue Last page Overview Image

break-statement in C

1. When the break statement is encountered inside a loop, the loop is immediately terminated and program control resumes at the next statement following the loop.

2. It can be used to terminate a case in the switch statement (covered in the next chapter).

NOTE :

If you are using ( nested loops ) (i.e., one loop inside another loop), the break statement will stop the execution of the innermost loop and start executing the next line of code after the block

The break statement in C programming language has the following two usages :