Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ switch statement

switch(expression) {
   case constant-expression  :
      statement(s);
      break; //optional
   case constant-expression  :
      statement(s);
      break; //optional
  
   // you can have any number of case statements.
   default : //Optional
      statement(s);
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #switch #statement
ADD COMMENT
Topic
Name
7+7 =