[Solved] Which block of code will execute faster? [closed]
The second one is always the better choice for readability, and the performance benefit (if one even exists) would be marginal using a switch statement. The < / > operators are probably an instruction or two of native code, and I can’t imagine that any switch statement would compile down to something so small. I … Read more