comma in switch case [closed]

This usage of comma in case label is illegal in standard C++. It is simply grammatically incorrect. A conforming compiler must issue a diagnostic message in response to this code, even if it accepts it somehow. There might (or might not) be some intricate details involved. In the original C++98 language comma operator was prohibited … Read more