Even if the compiler accepts it, coding a switch statement with 1,2,'A', ... is simply unwise programming.
It is difficult to figure out what it will do. Unless you are trying to be deliberately obscure.
Even if the compiler accepts it, coding a switch statement with 1,2,'A', ... is simply unwise programming.
It is difficult to figure out what it will do. Unless you are trying to be deliberately obscure.