Contents    Page-10    Prev    Next    Page+10    Index   

switch Statement

The switch statement is usually evil:


int vowel(ch)
  int ch;
  {  int sw;
     switch ( ch )
       {  case 'A':  case 'E':  case 'I':
          case 'O':  case 'U':  case 'Y':
            sw = 1; break;
          default: sw = 0; break;
          }
     return (sw);
   }