0
What happens default statement omitted......??
there is no value asigned so default statement printed but if we omitted...??
1 Odpowiedź
+ 2
Well...nothing. If there is no default and the case statement has no matches...it’s just done.
Try it in code and see. Default is not required and in absence of a match it’s as though you never entered the conditional.