c 2b 2b break statement

Solutions on MaxInterview for c 2b 2b break statement by the best coders in the world

showing results for - "c 2b 2b break statement"
Talon
23 Feb 2020
1break; statement helps in coming out of the current loop
2Further in case of nested loop it gets you out of the innermost loop.
Erica
30 May 2018
1for (int i = 0; i < 10; i++) {
2  if (i == 4) {
3    continue;
4  }
5  cout << i << "\n";
6}