CS 3304: Comparative Languages
Control Structures
[
Course Documents
] : [
Control Structures
]
Previous
Contents
Next
Keyword Index
Iterative Statements
The repeated execution of a statement or compound statement is accomplished either by iteration or recursion
Here we look at iteration, because recursion is unit-level control
General design issues for iteration control statements:
How is iteration controlled?
Where is the control mechanism in the loop?
Two common strategies: counter-controlled, and logically-controlled