Loading, please wait...

Loop Control Statement

Loop control statements are used to alter the flow of control.

 

Control statement

Description

break statement

Terminates the loop or switch statement and transfers execution to the statement immediately

following the loop or switch.

continue statement

Causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating

goto statement

Transfers control to the labeled statement.