Answer/Explaination
:
Compiler Error: Constant expression required in function main.
(Exp):
The case statement can have only constant expressions (this implies
that
we cannot use variable names directly so an error).
Note:
Enumerated types can be used in case statements.