What happens when i++ causes an integer overflow?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/10011372/c-underflow-and-overflow">C++ underflow and overflow</a>  </p>
</blockquote>



<p>I have following code in c++:</p>

<pre><code>int temp = std::numeric_limits&lt;int&gt;::max();
temp++;
</code></pre>

<p>Am I sure that after incrementation the result will always be &lt;0?</p>

<p>Thanks</p>
