Switch ImageMap


A Switch Statement is used when there is a choice as to which code to execute, depending on the value of a constant expression. Different cases are presented, and are checked one by one to see if one case matches the value of the Constant Expression. If a case matches, its block of code is executed. If none of the cases match, the default code is executed. The graphic shown below is an imagemap. Click on any text or a portion of the diagram to find explanatory information:

VIEW SWITCH ANIMATION

RETURN TO C TUTORIAL TOPICS


Last Revision: May 8,1999
Author: Lee Tauck