We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.