2/8/00
COM1100 Winter2000 Yuhong Yin
10
What each of these words
does?
n
case
n
identifies or labels individual values that
are compared to the value of the switch
expression.
n
switch expression’s value is compared to
each of these case values in the order in
which these values are listed until a match
is found.
n