1) The expression used in switch must be integral type ( int, char and enum) . Any other type of expression is not allowed. 2) All the statements following a matching case execute until a break statement is reached.
1) The expression used in switch must be integral type ( int, char and enum) . Any other type of expression is not allowed. 2) All the statements following a matching case execute until a break statement is reached.