Answers for "nested switch case c++"

C++
1

c++ nested switch statements

switch(ch1) {
   case 'A': 
      cout << "This A is part of outer switch";
      switch(ch2) {
         case 'A':
            cout << "This A is part of inner switch";
            break;
         case 'B': // ...
      }
      break;
   case 'B': // ...
}
Posted by: Guest on July-26-2021

Browse Popular Code Answers by Language