Why for(int i=0; i<10; ++i) and for(int i=0; i<10; i++) return the same?
<p>Why </p>

<pre><code>for(int i=0; i&lt;10; i++)
    std::cout &lt;&lt; i &lt;&lt; std::endl;
</code></pre>

<p>and</p>

<pre><code>for(int i=0; i&lt;10; ++i)
    std::cout &lt;&lt; i &lt;&lt; std::endl;
</code></pre>

<p>return the same:</p>

<pre><code>0 1 2 3 4 5 6 7 8 9
</code></pre>

<p>I was expecting the pre-increment to return:</p>

<pre><code>1 2 3 4 5 6 7 8 9 10
</code></pre>

<p>Since it increments it self before return, right?</p>