What are the Disadvantages Of Switch Statements in C#?

Forums C#What are the Disadvantages Of Switch Statements in C#?
Staff asked 2 years ago

Answers (1)

Add Answer
Umang Ramani Marked As Accepted
Staff answered 2 years ago

Switch statements’ negative aspects
The switch and the case cannot both use float constants. The variable expression is not applicable in this scenario. The same constant cannot be used in two different situations. The relational expression in case cannot be used.

Subscribe

Select Categories