title: Difference between i++ and ++i in a for loop
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/1812990/incrementing-in-c-when-to-use-x-or-x">Incrementing in C++ -  When to use x++ or ++x?</a>  </p>
  </blockquote>
  
  
  
  <p>What is the difference between </p>
  
  <pre><code>for (int i = 0; i &lt; MAX; i++)
  {
  //...do something
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>for (int i = 0; i &lt; MAX; ++i)
  {
  //...do something
  }
  </code></pre>
  
  <p>?</p>