Sail E0 Webinar
Question

Can we use a switch statement to switch on strings?


Options:
A .  Yes
B .  No
Answer: Option B

The cases in a switch must either have integer constants or constant expressions.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers