The ascendancy account that lets us accomplish a best from the amount of choices is alleged a switch, or added accurately a switch-case-default, back these keywords go calm to accomplish up the ascendancy statement.
Syntax for switch statement:


switch ( integer expression )
{
case constant 1 :
do this ;
case constant 2 :
do this ;
case constant 3 :
do this ;
default :
do this ;
}


0 comments to "SWITCH STATEMENT IN C"

Post a Comment

Powered by Blogger.