| C Tutorial | Switch Statement | |||||||||||||||||||||||||||||||||
|
The C Language C History BCPL Euclid’s Algorithm in C Euclid on the PDP-11 Pieces of C C Types Declarators Struct bit-fields Code generated by bit fields C Unions Layout of Records and Unions C Storage Classes malloc() and free() Dynamic Storage Allocation Simple Dynamic Storage Allocation malloc() and free() variants Fragmentation Fragmentation and Handles Automatic Garbage Collection Arrays Lazy Logical Operators The Switch Statement setjmp/longjmp: Sloppy exceptions Nondeterminism in C
|
switch (expr) { case 1: /* ... */ break; tmp = expr; if (tmp == 1) goto L1;
else goto Default; L1: /* ... */ goto Break;
break; default: /* ... */ break; } goto Break; Default: /* ... */ goto Break; Break: |