Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Question on data type

In the statement that follows, x can NOT be what data type?

switch (x) {statements}

we have a choice from the following: int, char, long, byte :confused:

Please help me, my instructor gave us this for extra credit, and I really need help. Any help would be greatly appreciated.

Thanks,
Jennifer Taylor

email: JTAYLOR5074@email.vccs.edu
[389 byte] By [JTAYLOR5074] at [2007-11-11 8:09:40]
# 1 Re: Question on data type
The switch measure must be an int or char or int equivalent (enum).

Code up a test and put a variable of the other data types into it ...
nspils at 2007-11-11 22:36:15 >