The conditions in a switch-case statement must be of _______ data type. 

  • floating 
  • string 
  • integer or enum 
  • boolean
In a switch-case structure in C++, the conditions or cases must be of an integer or enumeration type. Floating-point and boolean values cannot be used as cases.
Add your answer
Loading...

Leave a comment

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