Hello gcc gurus!
Take a look at these two statements. They work in the same manner, but do they complie to the same code? The if statement have to evaluate every row until the correct a is found. But how does the switch work? Can it jump to the correct row directly, or does it have to evalute every row as well?
if (a==0) else if (a==1) else if (a==2) ... switch (a) case (1) case (2) ...