Discussion :: Control Instructions
-
Which of the following errors would be reported by the compiler on compiling the program given below?
#include
A.
There is no break statement in each case. |
B.
Expression as in case 3 + 2 is not allowed. |
C.
Duplicate case case 5: |
D.
No error will be reported. |
Answer : Option C
Explanation :
Because, case 3 + 2: and case 5: have the same constant value 5.
Be The First To Comment