+ 1

Can the expression evaluated by 'switch' be a string?

30th Jun 2016, 6:26 PM
Christian Roos
Christian Roos - avatar
2 Respuestas
0
No it can't be string especially for c and c++ compilers, but you can use enum to solve your problem
31st Jul 2016, 5:08 AM
Anand Kumar
Anand Kumar - avatar
- 1
Yes
4th Jul 2016, 10:10 PM
Mihai Dancaescu
Mihai Dancaescu - avatar