Computer Science, asked by sujathagowtham144, 4 months ago

Write one limitation and one advantage of a switch statement.

unwanted answer will be reported ​


SweetPoison07: let me answer u
sujathagowtham144: ok
SweetPoison07: 20 ❤ pls
sujathagowtham144: ok
sujathagowtham144: first anwer
SweetPoison07: it's OK no thanks
SweetPoison07: where r u from
vikrantsingh1984: Amritsar punjab
vikrantsingh1984: hii

Answers

Answered by Anonymous
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.


vikrantsingh1984: hii
Answered by vikrantsingh1984
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