Write one limitation and one advantage of a switch statement.
unwanted answer will be reported
SweetPoison07:
let me answer u
Answers
Answered by
1
Answer:
Disadvantages of switch statements
float constant cannot be used in the switch as well as in the case.
You can not use the variable expression in case.
You cannot use the same constant in two different cases.
We cannot use the relational expression in case.
Answered by
4
Answer:
advantade of switch statement
The main reasons for using a switch include improving clarity, by reducing otherwise repetitive coding, and (if the heuristics permit) also offering the potential for faster execution through easier compiler optimization in many cases.
Explanation:
limitation
We cannot use the relational expression in case.
Similar questions