title: does return 0 exit a program or exit a loop?
body: <p>I have a question about <code>return</code> 0 in C:</p>
  
  <pre><code>void main()
  {
      int i = 0;
      while(1)
      {
          switch(i)
          {
              case 1:
              case 2:
              case 3:
              case 4:
                  i ++;
                  break;
              case 5:
                  return 0;
          }   
      }
  }
  </code></pre>
  
  <p>will the return 0 exit the whole program or it will just exit from the while loop?</p>