Home › Questions › How to use Nested Switch statements in C++
This topic contains 1 reply, has 2 voices, and was last updated by 2 years, 2 months ago.
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");
You can use BBCodes to format your content.Your account can't use Advanced BBCodes, they will be stripped before saving.
Mail (will not be published) (required):
Enter the destination URL
Or link to existing content