That is, they must be valid integer constant expressions (C standard 6.8. 4.2). Case ranges and case labels can be freely intermixed, and multiple case ranges can be specified within a switch statement .
Read moreCan we use range in switch case?
Yes, we can use a range of values with switch case statement ; in this article we are going to discuss the same. For example, if you want to execute same set of statements with a range of numbers, you do not need to write separate case values, you can use range like min_value … max_value.
Read more