+ 2

Control structures

Can we use string in switch case in C

29th Jan 2018, 8:52 AM
Venkatesh R B
Venkatesh R B - avatar
2 Respuestas
+ 2
oh yeah you can in c++ not c
29th Jan 2018, 8:56 AM
shobhit
shobhit - avatar
+ 2
you can use char but c does not even have string type and im pretty sure that cpp also does not support strings on the switch
29th Jan 2018, 11:04 AM
capsloth
capsloth - avatar