Your SlideShare is downloading. ×
Loops in C
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Loops in C

1,673
views

Published on

This slide give the introduction to the various loops available in C Programming. Which include while loop, do while loop and for loop.

This slide give the introduction to the various loops available in C Programming. Which include while loop, do while loop and for loop.

Published in: Education, Business, Technology

0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,673
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
266
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. WHILE DO..WHILE FOR EXITING FROM A LOOP (BREAK,CONTINUE, GOTO) Loops
  • 2. While
  • 3. While
  • 4. While
  • 5. While
  • 6. Do…While
  • 7. D0…While
  • 8. Do…While
  • 9. Do…While
  • 10. For Loop
  • 11. For Loop
  • 12. For Loop
  • 13. For Loop
  • 14. For Loop
  • 15. For Loop
  • 16. For Loop
  • 17. Break Statement  It is an jump instruction and can be used inside the switch and loop statements.  The execution of the break statements causes the control transfer to the statement immediately after the loop.
  • 18. Break Statement
  • 19. Break Statement
  • 20. Break Statement
  • 21. Break Statement
  • 22. Break Statement
  • 23. Break Statement
  • 24. Continue Statement  It is a jump statement.  It is used only inside the loop.  Its execution does not exit from the loop but escape the loop for that iteration and transfer the control back to the loop for the new iteration.
  • 25. Continue Statement
  • 26. Continue Statement
  • 27. Continue Statement
  • 28. Continue Statement
  • 29. Continue Statement
  • 30. Goto Statement  It is used the alter the normal sequence of flow by transferring the control to some other part of the program unconditionally.  It is followed by the label statement which determine the instruction to be handled next after the execution of the goto statement.
  • 31. Goto Statement
  • 32. Goto Statement
  • 33. Goto Statement
  • 34. Goto Statement