Which of these statement is incorrect?
A. switch statement is more efficient than a set of nested ifs.
B. two case constants in the same switch can have identical values.
C. switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression.
D. it is possible to create a nested switch statements.
Answer:A
Which of these statement is incorrect?
A. switch statement is more efficient than a set of nested ifs. B. two case constants in the same switch can have identical values. C. switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression. D. it is possible to create a nested switch statements.
Explanation: No two case constants in the same switch can have identical values.