+ 3

What is the implementational or functional difference between switch statement and nested if statements?

11th Mar 2018, 2:00 PM
Mamuya, Gilbert .W
Mamuya, Gilbert .W - avatar
3 Antworten
+ 14
Also In Switch :- variables cannot be used as case values ... only constants are allowed u can make variables constant & use it though...☺️
11th Mar 2018, 3:15 PM
🌛DT🌜
🌛DT🌜 - avatar
+ 1
Functional difference: switch loop works like "if else-if" statements, whereas "nested" if statement works different from if else-if statements.
11th Mar 2018, 3:06 PM
777
777 - avatar
0
switch case do not accet condition after certain level nested if becomes difficult to handle
11th Mar 2018, 2:07 PM
‎ ‏‏‎Anonymous Guy