CS 3304: Comparative Languages
Control Structures
[
Course Documents
] : [
Control Structures
]
Previous
Contents
Next
Keyword Index
Counter-Controlled Loops
Design Issues:
What is the type and scope of the loop variable?
What is the value of the loop variable at loop termination?
Should it be legal for the loop variable or loop parameters to be changed in the loop body?
If so, does the change affect loop control?
Should the loop parameters be evaluated only once, or once for every iteration?