Multiple choice

Which of the following data types cannot be used with switch statement?

  1. int

  2. float

  3. char

  4. string

  5. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

We cannot use float type on switch statement.