In c++ switch statement what if two case match the condition? | Sololearn: Learn to code for FREE!
+ 1

In c++ switch statement what if two case match the condition?

where break is used in every case

13th Jul 2021, 3:01 AM
pavan
pavan - avatar
1 Odpowiedź
+ 6
Compiler complains if any of the case labels were evaluable as similar value.
13th Jul 2021, 3:29 AM
Ipang