What\'s the best practice for using a switch statement vs using an if statement for 30 unsigned enumerations where about 10 have an ex
switch
if
unsigned
I'm not sure about best-practise, but I'd use switch - and then trap intentional fall-through via 'default'