c switch case variable 0 code example
Example: c switch case
switch (expression) {
case constant1:
// statements
break;
case constant2:
// statements
break;
default:
// default statements
}
switch (expression) {
case constant1:
// statements
break;
case constant2:
// statements
break;
default:
// default statements
}