CS 3304: Comparative Languages
Control Structures
[
Course Documents
] : [
Control Structures
]
Previous
Contents
Next
Keyword Index
Pascal For Loop
Syntax:
for var := initial (to | downto) final do statement
Design Choices:
Loop var must be an ordinal type of usual scope
After normal termination, loop var is undefined
The loop var cannot be changed in the loop
The loop parameters can be changed, but they are evaluated just once, so it does not affect loop control