Knowing that a compiler may use a jump table or even a binary search for a switch statement isn't necessary.

It is enough to simply realise that with an if/else-if chain, you're telling the...