The switch statement

4/19/99


Click here to start


Table of Contents

The switch statement

Multiple Seclections with ‘if’

Multiple Selections with if-else

The switch multiple-selection structure

break

switch example

The getchar ( ) function

getchar ( ) example

#define EOF

Another getchar() example

Logical Operators

Example use of &&

Example of ||

Operator Precedence & Associativity

Some Practice Examples

Sample Quiz

Author: UMBC Dennis

Email: frey@cs.umbc.edu