break, continue, return of Past and Present

1. break this cycle terminates
     note:

1) break statement has no effect on the condition of the if-else statements.
2) In the multilayer loop, a break only one jump outward.

2.continue skip a cycle and the following statement for the next cycle.
        note:
      1) continue at the statement only for, while, do-while loop and the like, often used in conjunction with the if condition used to speed the cycle.
 
 
3.return end of the process, returned to the calling of the method, if it is main () function, then the end of the run the entire program


Published 21 original articles · won praise 43 · views 40000 +

Guess you like

Origin blog.csdn.net/JggAkk/article/details/77365942