title: "--" operator in while ( ) loop
body: <p>I am reading K&amp;R book, on page 63 there is a line</p>
  
  <pre><code>while (--lim &gt; 0 &amp;&amp; (c=getchar()) != EOF &amp;&amp; c != '\n')
  </code></pre>
  
  <p>where lim is int equal to 1000</p>
  
  <p>My question, why is <strong>lim</strong> is not decreasing after consequential runs of while loop ?
  As I see it, <strong>--lim</strong> is equivalent to "lim = lim - 1"</p>
  
  <p>===================================================================</p>
  
  <p>Thanks for all the answers !</p>