> ## Documentation Index
> Fetch the complete documentation index at: https://docs.syntblaze.com/llms.txt
> Use this file to discover all available pages before exploring further.

# C Continue Statement

The `continue` statement is a jump statement in C that alters the flow of control within iterative constructs (`for`, `while`, `do-while`). When executed, it immediately terminates the execution of the current iteration within the innermost enclosing loop and forces the program evaluation to proceed directly to the loop's next iteration cycle.

```c theme={"dark"}
continue;
```

## Execution Mechanics

The exact behavior of the `continue` statement depends on the type of loop in which it is embedded. It bypasses all remaining statements in the loop body for the current iteration, but the subsequent control flow target varies:

* **`while` and `do-while` loops:** Control transfers directly to the loop's conditional expression. If the condition evaluates to true (non-zero), the loop executes the next iteration.
* **`for` loops:** Control transfers first to the loop's iteration expression (the update/increment step). Only after the iteration expression is evaluated does control proceed to the conditional expression.

## Control Flow Visualization

**In a `for` loop:**

```c theme={"dark"}
for (initialization; condition; update) {
    // Statement A
    if (trigger) {
        continue; // Jumps directly to 'update', then 'condition'
    }
    // Statement B (Skipped if continue is executed)
}
```

**In a `while` loop:**

```c theme={"dark"}
while (condition) {
    // Statement A
    if (trigger) {
        continue; // Jumps directly back to 'condition'
    }
    // Statement B (Skipped if continue is executed)
}
```

## Technical Constraints

1. **Scope Restriction:** The `continue` statement is strictly bound to loop constructs. Attempting to use `continue` outside of a `for`, `while`, or `do-while` loop results in a compilation error.
2. **Switch Statements:** Unlike the `break` statement, `continue` has no effect on `switch` statements. If a `continue` appears inside a `switch` that is itself nested within a loop, the `continue` applies to the enclosing loop, bypassing the remainder of both the `switch` and the loop body.
3. **Nesting:** In nested loop architectures, `continue` only applies to the innermost loop containing the statement. It does not affect the iteration cycle of outer loops.

<div
  style={{ 
display: "flex", 
justifyContent: "space-between", 
alignItems: "center", 
maxWidth: "754px", 
padding: "1rem 0",
marginBottom: "24px"
}}
>
  <span style={{ fontWeight: "bold", fontSize: "1.25rem", color: "var(--tw-prose-headings)", fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" }}>Tired of Poor C Skills? Fix That With Deep Grasping!</span>

  <a
    href="https://syntblaze.com"
    target="_blank"
    style={{ 
  marginLeft: "24px",
  textDecoration: "none", 
  backgroundColor: "#007AFF",
  color: "#ffffff", 
  padding: "6px 16px", 
  borderRadius: "16px",
  fontSize: "0.9rem",
  fontWeight: "600",
  textAlign: "center",
  transition: "background-color 0.2s ease"
}}
  >
    Learn More
  </a>
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/skill-tracking.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=b9b0305c93bb501c9e767b5c76c88835" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/skill-tracking.png" />

  <img src="https://mintcdn.com/syntblazellc/23tyuOzaWS88qFlc/images/nuggets.png?fit=max&auto=format&n=23tyuOzaWS88qFlc&q=85&s=c86c80197299762989e9b882419b2109" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/nuggets.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/bite-sized-exercises.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=a65f9a38c37ff28ab73ed783c53c60e3" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/bite-sized-exercises.png" />
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap", marginTop: "12px" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/mastery-chain.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=748a1763454713e679260fbb95f154a2" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/mastery-chain.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-previews.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=242f61448ff5dd6deaaab2dccc13b507" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-previews.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-explanations.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=cf0fc1c31f9cd0fc26716781be05fbc9" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-explanations.png" />
</div>
