Discussion Forum : Control Instructions
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 Your Solution hear:

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