>>15611497>switch defaultswitch has another function besides the cases - default. Default is basically a case without a set value, i.e. so if the expression doesn't match any case value, then switch will perform the default action
^Example switch (expression)
{
case value1;
insert code here;
break;
default;
shit nophono codes fam about;
break;
}
So, if the expression = value1, them switch performs whathever code there is in that case. However, if expression doesn't match value1, sice there are no more cases with specific values to match, them switch performs shit nophono codes fam about