Hello
This may disappoint u but switch case construct is not available in C(as per my knowledge). Its there in C++(I dont know much about C but am comfortable with C++). And in C++ switch case construct is used for constant conditions, it not used for the kind of statements u wish to use it for( oops another disappointment!!!). I hope u know the syntax of the switch case construct.
It accepts a value in the parenthesis of switch and executes the statements under the corresponding case label. If it does not find any then it executes the default statement.