Skip to content

section5_intro

Fábio Gaspar edited this page Jan 18, 2019 · 3 revisions

Control flow

So far we have written instructions that are run sequentially. In many programming scenarios we need to perform some tasks only when specific conditions are true.

In this section the mechanisms in C that allow control flow are covered.

  1. The if..else if...else statement
  2. The switch statement
  3. The for loop
  4. The while loop
  5. The do...while loop
  6. The special keywords continue and break in loops
  7. The goto and labels