- 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++
Continue statement is loop control statement. It works opposite the break statement and force to execute the next statements.
Here is the syntax of continue statement in C language,
continue;
Here is an example of continue statement in C language,
Example
#include <stdio.h> int main () { int a = 50; do { if( a == 55) { a = a + 1; continue; } printf("Value of a: %d\n", a); a++; } while( a < 60 ); return 0; }
Output
Value of a: 50 Value of a: 51 Value of a: 52 Value of a: 53 Value of a: 54 Value of a: 56 Value of a: 57 Value of a: 58 Value of a: 59
- Related Articles
- Continue Statement in C/C++ Programming
- PHP continue Statement
- How do we use continue statement in a while loop in C#?
- The continue statement in JavaScript
- Continue statement in Dart Programming
- 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?
- How can I use a label with continue statement in JavaScript?
- What is a continue statement in Java and how to use it?
- goto statement in C/C++
- Break Statement in C/C++
- What is the difference between break and continue statements in C#?

Advertisements