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.