title: Are there any side effects to having the default case ahead of all other test cases in C?
body: <p>If I have the default case ahead of all other test cases in C, can that have any nefarious effects on the program?</p>
  
  <p>For example,</p>
  
  <pre><code>switch(test)
  {
      default:
          printf("hello");
          break;
  
      case 1:
          printf("1");
          break;
  }
  </code></pre>