`continue` — C Keyword
`continue` — C Keyword
The continue keyword in C: skips the rest of the current loop iteration.
`continue` — C Keyword
The continue keyword in C: skips the rest of the current loop iteration.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
continue (C)Skips the remainder of the current loop body and jumps to the next iteration.
continue;
#include <stdio.h>
int main(void) {
/* Print only odd numbers */
for (int i = 0; i < 10; ++i) {
if (i % 2 == 0) continue;
printf("%d ", i); /* 1 3 5 7 9 */
}
printf("\n");
return 0;
}
for loop, continue executes the iteration expression before re-checking the condition.continue applies to the innermost enclosing loop.continueint main() {
// Pick one facility from this reference page.
// Write the smallest program that exercises its main precondition,
// complexity rule, or lifetime constraint before scaling up.
return 0;
}