title: using ++counter instead of counter++ in for loops
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/24901/is-there-a-performance-difference-between-i-and-i-in-c">Is there a performance difference between i++ and ++i in C++?</a>  </p>
  </blockquote>
  
  
  
  <p>I saw many places where they use for loops like this:</p>
  
  <pre><code>for(i = 0; i &lt; size; ++i){ do_stuff(); }
  </code></pre>
  
  <p>instead of (which I -&amp; most of people- use)</p>
  
  <pre><code>for(i = 0; i &lt; size; i++){ do_stuff(); }
  </code></pre>
  
  <p><code>++i</code> should exactly give the same result as <code>i++</code> (unless operators overloaded differential). I saw it for normal for-loops and STL iterated for loops.</p>
  
  <p>Why do they use <code>++i</code> instead of <code>i++</code>? does any coding rules recommends this?</p>
  
  <p><strong>EDIT</strong>: closed cause I found that it is exact duplicate of <a href="https://stackoverflow.com/questions/24901/is-there-a-performance-difference-between-i-and-i-in-c">Is there a performance difference between i++ and ++i in C++?</a></p>