Unlike if-else, switch-case in C++ does not support _______ type for case values. 

  • floating-point 
  • integer 
  • character 
  • boolean
In C++, switch-case constructs don't support floating-point types for case values. This means you can't use float or double values as cases. On the other hand, if-else structures can easily handle conditions based on floating-point values.
Add your answer
Loading...

Leave a comment

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