[cs13001] expression types in switches

Mikhail Nesterenko mikhail at cs.kent.edu
Wed Jan 23 19:49:13 EST 2013


CSI students,

There was a question as to what type expression (and constants) can be
used in a switch. Out of the ones we studied it will be integer, char
and bool. The latter is not very useful. Double and string types are
not allowed in a switch expression.

Thanks,
-- 
Mikhail


More information about the cs13001 mailing list