954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

question!!

I want to know what is the differnt between continue and the break ?

bis student
Newbie Poster
16 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

continue means go the start of the loop ignoring any remaining lines in the loop

break means go to the end of the loop ignoring any further lines or iterations of the loop

Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396
 

Here's a tip
GOOGLE is your friend.
Whenever you have a "lookup" type question,
try Google-ing it first . Enter it like this:
C++ continue
C++ break

You may use this method for any lookup question you may have in the future.
It doesn't even have to be limited to C++ either!

JRM
Practically a Master Poster
621 posts since Nov 2006
Reputation Points: 130
Solved Threads: 75
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You