I have not understood this break statement and continue statement in loop structure while learning C.can u explain with an easy example:confused:
![]() |
I have not understood this break statement and continue statement in loop structure while learning C.can u explain with an easy example:confused:
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.
All times are GMT -7. The time now is 06:52 PM. |