Example code for loops with break and continue in a C program:
What will be the output of this below program?
for(int j=0; j
infinite loop and crash
it prints 12345. Inner for loop will print only once since we are using continue statement. Continue statement is used to skip the rest of the lines in that loop and go to next loop. In the outer while loop we are breaking (coming out) once it reaches 5 loops.
your page is great but still need some tricks
Back To Top