in a "for" loop, is the Terminating Condition Re-Evaluated on Each Iteration?
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/6093537/for-loop-optimization">for loop optimization</a><br>
  <a href="http://stackoverflow.com/questions/4477296/for-loop-optimization-needed-or-not">for-loop optimization - needed or not?</a>  </p>
</blockquote>



<p>e.g. </p>

<pre><code>  int maxloop = complicated();
   for (int i=0;i&lt;maxloop;i++){}
</code></pre>

<p>or</p>

<pre><code> for (int i=0;i&lt;complicated();i++){}
</code></pre>

<p>Is the compiler smart enough to optimize it?</p>

<p>what about <code>while</code>?</p>
