Question: 1) Can a switch statement do the same thing as an if else statement? if so, give an example. 2) What does the default word
1) Can a switch statement do the same thing as an if else statement? if so, give an example.
2) What does the default word do in a switch statement ?
3) What are the uses for the switch statement ?
4) Why does the switch start in the OFF state ?
5) Is it necessary to have switch statement, or can you do basically the same with if, and if else statements ?
6) Can you have fall through with cascading if statements ?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
