jump_statements

jump_statements

break

this statement moves the control flow out of the innermost loop or switch statement it is called from.

continue

jump to just before the end of the loop body.

goto

jump to a label. A label is something you can put before a statement.

goto label;
...
label: printf("hello");

It is useful in exiting nested loops or switches inside loops.

see also

[[for_loop___20240610_094502|for_loop]]

tags c

backlinks