Get premium membership and access questions with answers, video lessons as well as revision papers.
The switch statement is applied in a case where the if-else statement may end up being too deeply nested. The switch statements make it easy to branch on any of a number of different values.
Kavungya answered the question on May 15, 2019 at 14:28