2
Reply

Which Data Type can Not be Used in switch Case Statement ?

Ajeet Mishra

Ajeet Mishra

8 years ago
536
0
Reply

    float

    Mukesh Kumar
    7 years ago
    0

    The governing type of a switch statement is established by the switch expression. If the type of the switch expression is sbyte, byte, short, ushort, int, uint, long, ulong, char, string, or an enum-type, then that is the governing type of the switch statement. Otherwise, exactly one user-defined implicit conversion (§13.4) must exist from the type of the switch expression to one of the following possible governing types: sbyte, byte, short, ushort, int, uint, long, ulong, char, string. If no such implicit conversion exists, or if more than one such implicit conversion exists, a compile-time error occurs.

    Ajeet Mishra
    8 years ago
    0