Monday, December 10, 2007

How to use switch construct

How to use switch construct

To use switch construct.

Declaration :

switch ( selection )

{ case 1: statement sequence

break;

case 2: statement sequence

break;

case 3: statement sequence

break;

default : error selection statement

}


No comments: