Questions about fixed count iterations

 

Definition:  Fixed-count iterations (often referred to as FOR loops) are controlled by the loop control variable (abbreviated LCV)

 

  1. What types are permitted for the LCV?

 

  1. What is the scope of the LCV (i.e. where is it known? where can it be printed ?

 

  1. Can the LCV be modified by the programmer within the iteration body?

 

  1. What is the value of the LCV after normal termination of the iteration?

 

  1. When are the final (and increment/decrement) expressions evaluated?

 

  1. Is an increment other than successor permitted?

 

  1. Is iteration backward through a range allowed and if so, how is it specified?

 

  1. Is transfer into the iteration permitted and if so, what effect does it have on the LCV?

 

  1. How is the iteration body delimited?

 

  1. Is it possible to transfer out of the iteration before the iteration has completed and if so, how do you do it?