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?

  1. int, float, char
  2. int, char
  3. int, double
  4. Any fundamental type

Answer: A) int, float, char

Explanation:

We can use only int, char type variables in the switch statement for case selection.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.