Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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': // ...
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #nested #switch #statements
ADD COMMENT
Topic
Name
3+5 =