C – Break Statement

C – Break Statement 2017-07-19T16:46:00+00:00

Break Statement :

  • The break statement is a jump instruction and can be used inside a switch construct, for loop, while loop and do-while loop.
  • The execution of break statement causes immediate exit from the concern construct and the control is transferred to the statement following the loop.
  • In the loop construct the execution of break statement terminates loop and further execution of the program is reserved with the statement following the body of the loop.

C – BREAK STATEMENT EXAMPLE PROGRAM :

Output:

1

2

3

4

5

Prev Next