Jumps in loop :
• Loops perform a set of oprations repetedly until the control variable fails to satisfy the condition sometimes, when executing a loop it becomes desirable to skip a part of a loop or to leave the loop as soon as certain condition occurs.
• C-permits a jump from one statement to another within a loop as well as jump out of a loop.
Jumping out of a loop (break statement)
• An early exit from a loop can be accomplished by using break statement.
• When a break statement
No comments:
Post a Comment