Quiz 18 Solution - Monday July 10, 2000


1. What is the syntax of a for loop? 2. What are the parts of the header of the for loop usually used for? 3. If counter=1, and a = ++counter, what is the value of a? 4. If we have the statements counter=1; and b = counter++; in a program, what will be the value of counter after the second statement is executed?