Wednesday, February 11, 2009

What restrictions are placed on the values of each case of a switch statement

Question :What restrictions are placed on the values of each case of a switch statement?
Answer :During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value.

No comments: