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

Recommended Answers

All 2 Replies

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

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!

commented: Yes! +15
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.