Hi Experts,
What is the key difference between if/else and swtich case statements ?
How the modern ARM GCC compilers handles it ?
In addition to what daith said, switch statements lend themselves to being more easily optimised into jump/branch tables, rather than a series of compares, which can improve performance in some use cases.