Is switch accept 2 nd family that means real? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is switch accept 2 nd family that means real?

switch accept only 1 and 3 family

2nd Mar 2017, 4:55 PM
Aashi ka
Aashi ka - avatar
3 Answers
+ 8
I don't understand your question. Could you post an example code that shows what you want to do?
2nd Mar 2017, 5:02 PM
Tashi N
Tashi N - avatar
+ 2
Seems new concept. .please teach me
2nd Mar 2017, 5:42 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
Floats are not precise enough anyway. If you do a few calculations where you know the result might be 0, then in some cases you end up with a value VERY close to 0 but not 0. You can only use integral types, meaning int, char....
3rd Mar 2017, 2:37 AM
Aashi ka
Aashi ka - avatar