+ 3
What is the implementational or functional difference between switch statement and nested if statements?
3 ответов
+ 14
Also
In Switch :-
variables cannot be used as case values ... only constants are allowed
u can make variables constant & use it though...☺️
+ 1
Functional difference:
switch loop works like "if else-if" statements, whereas "nested" if statement works different from if else-if statements.
0
switch case do not accet condition
after certain level nested if becomes difficult to handle