0
What is the difference between switch case and if else statement?
2 Respuestas
+ 2
A switch statement can always be translated to a chain of if else statements, but the opposite is not necessarily true.
+ 1
IF else - It is used for taking a decisions
Switch statement - It is used to test the value of the given variable against a list of case value