Next: Multiple Choice Questions
Up: The switch statement
Previous: Examples of switch statements
case labels then the
statements associated with the default label will be executed.default label is optional but if it is not included then a
selector which does not match any of the case labels causes the
whole switch statement to be ignored.