Why does the control falls into loop?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/514118/how-does-duffs-device-work">How does Duff&#39;s device work?</a>  </p>
</blockquote>



<p>I recently came across a question in C++ about the working of a C++ code...</p>

<pre><code> void send(int*to,int* from, int count)
{
  int n = (count+7)/8;
  switch(count%8){
   case 0: do{*to++=*from++;
   case 7:    *to++=*from++;
   case 6:    *to++=*from++;
   case 5:    *to++=*from++;
   case 4:    *to++=*from++;
   case 3:    *to++=*from++;
   case 2:    *to++=*from++;
   case 1:    *to++=*from++;
      }while(--n&gt;0);
   }
 }
</code></pre>

<p>How does this code falls into the loop if the value of count%8 comes to be other than 0 as it does not come across the do statement????</p>
