

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 Questions & Answers
- Continue statement in Dart Programming
- Continue Statement in C/C++
- PHP continue Statement
- The continue statement in JavaScript
- Java continue statement with Loop
- What is continue statement in JavaScript?
- How do we use continue statement in a while loop in C#?
- How to use continue statement in Python loop?
- What difference between break and continue in C/C++?
- Break statement in Dart Programming
- Return statement in Dart Programming
- Break statement in Lua Programming
- Return statement in Lua Programming
- Why does Lua have no “continue” statement?
- Can we use continue statement in a Python if clause?
Advertisements