C++ Operators pre- and post- incrementing
<p>I am not understanding the pre/post incrementing of this code example:</p>

<pre><code>int1 = 14;
int2 = ++int1;
// Assert: int1 == 15 &amp;&amp; int2 == 15
</code></pre>

<p>In this pre-incrementing example why does int1 == 15? Why is int1 incremented and not just int2?</p>

<p>Then we have:</p>

<pre><code>int1 = 14;
int2 = int1++;
// Assert: int1 == 15 &amp;&amp; int2 == 14
</code></pre>

<p>In this post-incrementing example why does int2 == 14? Why is int2 not incremented but int1 is?</p>
