0

Can I use the operators in the switch statement?

4th Sep 2016, 11:28 PM
Erick Coelho
Erick Coelho - avatar
1 Answer
0
switch only works on integer values. if u use char data type then it will be converted first to ASCII value nd then executed. no u can't use operators. I mean logical operators. switch(3+5) should work. please check. i did it a long back.
5th Sep 2016, 3:36 AM
Ayaz Muttaqui
Ayaz Muttaqui - avatar