title: Dividing integers
body: <p>I know when dividing integers the default way it works is to discard the fractional part. E.g., </p>
  
  <pre><code>int i, n, calls = 0;
  n = 1;
  n /= 3;
  printf("N = %i\n", n);
  for (i = 1; i &gt; 0; i /= 3) {
      calls++;
  }
  printf("Calls = %i\n", calls);
  </code></pre>
  
  <p>The code above prints:</p>
  
  <pre><code>N = 0
  Calls = 1
  </code></pre>
  
  <p>Could you please explain this behavior?</p>