Switch-case statement - Data types - C programming

Q.  Which of the following cannot be checked in a switch-case statement?
(C programming)

- Published on 26 Jun 15

a. Character
b. Integer
c. Float
d. enum

ANSWER: Float
 
The switch-case is defined by the language specification to use an int value so you cannot use a float value.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)