- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Continue Statement in C/C++ Programming
In this tutorial, we will be discussing a program to understand continue statement in C/C++.
Continue statement is a loop control statement which rather than breaking through the loop like the break statement, forces the current pointer to move to the next iteration of the loop without implementing the rest statements in the current iteration.
Example
#include <stdio.h> int main() { //looping from 1 to 10 for (int i = 1; i <= 10; i++) { //skipping printing of 6 if (i == 6) continue; else printf("%d ", i); } return 0; }
Output
1 2 3 4 5 7 8 9 10
- Related Articles
- Continue statement in Dart Programming
- Continue Statement in C/C++
- PHP continue Statement
- How do we use continue statement in a while loop in C#?
- The continue statement in JavaScript
- What is continue statement in JavaScript?
- Java continue statement with Loop
- How to use continue statement in Python loop?
- Why does Lua have no “continue” statement?
- Can we use continue statement in a Python if clause?
- Break statement in Dart Programming
- Return statement in Dart Programming
- Break statement in Lua Programming
- Return statement in Lua Programming
- How can I use a label with continue statement in JavaScript?

Advertisements