One control structure of C and many other languages is the switch-statement, that allows to perform different code-blocks depending of a certain variable
switch (n) {
case 0:
//execude code for case n == 0
break;
case 1:
//execude code for case == 1
break;
default:
printf("whatever");
}
where n needs to be an int or a char (that is actually an int, too) and enums of those types.
But we live in a objectified world today. If it comes to flow-control depending on objects, switch is useless. We need to use if-statement, that can be quite hairy easily.
One could argue, that ...
