Difference between break and continue statement

DonX picture DonX · Jan 20, 2009 · Viewed 455.1k times · Source

Can anyone tell me the difference between break and continue statements?

Answer

Xn0vv3r picture Xn0vv3r · Jan 20, 2009

break leaves a loop, continue jumps to the next iteration.