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
Compiler will optimise it anyway - go for the switch as it's the most readable.