Home › Forums › Programming › How to use Nested Switch statements in C++
Please provide me the Nested Switch statements syntax of C++.
I need it very urgent…
You can have a switch as part of the statement sequence of an outer switch. Even if the case constants of the inner and outer switch contain common values, no conflicts arise.
case 0: printf("example by eTechTricks.com");
case 1: example(a,b);
case 2: printf("example 2 by eTechTricks.com");
Mail (will not be published) (required):
Enter the destination URL
Or link to existing content