switch case c comparison 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
}