February 2014
Beginner
1248 pages
62h 25m
English
Programs frequently display the control-variable value or use it in calculations in the loop body, but this use is not required. The control variable is commonly used to control repetition without being mentioned in the body of the for.
Error-Prevention Tip 5.5
Although the value of the control variable can be changed in the body of a for loop, avoid doing so, because this practice can lead to subtle errors.
Read now
Unlock full access