Continue/Example
for(i = 1; i <= 3; i++) {
printf("%d\n", i);
if (i == 2)
continue;
printf("bottom of "
"loop\n");
}
printf("out of loop");
the output is
1
bottom of loop
2
3
bottom of loop
out of loop
This is example on page 116.
Previous slide
Next slide
Back to first slide
View graphic version