6.8 switch statement
A switch statement should have the following format:
switch (condition) {
case ABC:
/* falls through */
statements;
case DEF :
Statements;
break;
case XYZ:
statements;
break;
default:
statements; Note. The above example code contains the comment /* falls through */.
www.bkjia.com