Home »
MCQs »
C++ MCQs
Which of the following types of variables can be used in the Switch statement for case selection?
89. Which of the following types of variables can be used in the Switch statement for case selection?
- int, float, char
- int, char
- int, double
- Any fundamental type
Answer: A) int, float, char
Explanation:
We can use only int, char type variables in the switch statement for case selection.