---
title: 2.19 continue Statement
description: "The `continue` statement skips the remaining statements in the current loop iteration and proceeds with the next iteration. ``` #include int main() { int i; for (i = 1; i"
url: "https://edcret.in/docs/c-programming/control-flow/2-19-continue-statement/"
updated: "2026-09-06"
category: C Programming / Control Flow
---

# 2.19 continue Statement

The `continue` statement skips the remaining statements in the current loop iteration and proceeds with the next iteration.

```
#include <stdio.h>

int main()
{
    int i;

    for (i = 1; i <= 5; i++)
    {
        if (i == 3)
        {
            continue;
        }

        printf("%d\n", i);
    }

    return 0;
}
```

### Example Output

```
1
2
4
5
```

### Explanation

When `i` becomes `3`, the `continue` statement is executed:

```
if (i == 3)
{
    continue;
}
```

This skips the `printf()` statement for that iteration.

In a `for` loop, `continue` transfers control to the **iteration expression** (`i++`) before the next condition check. Therefore, `i` becomes `4` and the loop continues.

Unlike `break`, `continue` does **not terminate the loop**. It only skips the remainder of the current iteration.
