switch (variable or an integer expression){ case constant: //C Statements ; case constant: //C Statements ; default: //C Statements ;} code example
Example: c switch case example
switch (variable or an integer expression)
{
case constant:
//C Statements
;
case constant:
//C Statements
;
default:
//C Statements
;
}