+ 2

why we can't pass float variable in a switch case in C or C++?

22nd Jan 2018, 4:45 PM
dhiman mishra
dhiman mishra - avatar
2 Respuestas
+ 2
No idea, doesn’t work with strings either.
22nd Jan 2018, 5:02 PM
Jacob Pembleton
Jacob Pembleton - avatar
0
because they are imprecise
22nd Jan 2018, 5:22 PM
Jeremy
Jeremy - avatar