Lecture overview -- Keyboard shortcut: 'u'  Previous page: Expressions and operators -- Keyboard shortcut: 'p'  Next page: Functions and parameters -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    From C to C++ - slide 21 : 29

Control structures
The control structures in C are well-known - and almost identical - to control structures in other languages in the C family
for-c.c
A program with a for loop in C.
for-output-c
Program output.
for.cc
Illustration of local variables in a for loop in C++.
for-output-cpp
Program output.