Ask Experts Questions for FREE Help!
 

Free Answers in 3 Easy Steps

Register Now
3 Steps
 


Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.
  View Answers    Answer this question    Ask a question  
 

zecholia
May 24, 2009, 06:57 AM
I have not understood this break statement and continue statement in loop structure while learning C.can you 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.