Log in

View Full Version : What is BREAK STSTEMENT and CONTINUE STATEMENT in loop control structure mean?


zecholia
May 24, 2009, 06:57 AM
I have not understood this break statement and continue statement in loop structure while learning C.can u explain with an easy example:confused:

Perito
May 24, 2009, 10:32 AM
BREAK is used to end a loop, often a FOR loop, immediately. It's used in Switch Case statements to end each case. Otherwise, program flows into the next state case.

CONTINUE in a FOR loop is a command to return to the start of the loop and increment the iteration index.