Nearby lessons
48 of 124C - Continue Statement
Learn the continue statement in C — it skips the rest of the current loop iteration and jumps straight to the next one.
What is continue?
continue skips the rest of the current round and jumps to the next iteration of the loop. Unlike break, the loop itself keeps running.
Trainer's Memory Trick: continue is skipping a turn in a game — the game keeps going, you just miss one round.
Continue in Action
This loop prints 1 to 5 but skips 3:
Example02
break vs continue
| Point | break | continue |
|---|---|---|
| Effect | Stops the loop completely | Skips only the current round |
| Loop continues? | No — exits the loop | Yes — next iteration runs |
| Best for | Leaving early (search found) | Ignoring one value |
Example03
📝 Key Takeaways
- continue skips the rest of the current round
- The loop keeps going with the next iteration
- break ends the loop; continue only skips one round
🧠 Test Your Knowledge
1 QuestionsProgress: 0 / 1