Home > Back-end >  The difference between break statement and the continue statement
The difference between break statement and the continue statement

Time:01-04

Break statement and the difference between the continue statement, bosses told

CodePudding user response:

Break out of circulation, continue to ignore the continue the following statement to cycle

CodePudding user response:

Break is jump out of the cycle (equivalent to early termination, no longer follow-up data processing loop)
Continue is to end the cycle, directly into the next round of cycle (which is the processing of the current cycle is skipped, start the next round of cycle)
So the biggest difference is that, break is over, the entire cycle continue is the end of the cycle, the cycle isn't over)

CodePudding user response:

For circulation,
The continue eyes closed one zheng, a day passed, first letter c is an open, look from flank
Break closes eyes don't open and the rest of my life in the past, b is closed, no longer hard to open
  • Related