19.2.4.  Review Questions

[ fromfile: controlstructures-questions.xml id: controlstructures-questions ]

  1. What is the difference between a compound statement and a simple statement?

  2. How can you guarantee that at least one case will be executed for any given switch value?

  3. What are the advantages and disadvantages of the three iteration structures? For each, discuss the kinds of situations that would lead you to prefer using it rather than the other two.