title: Does repeatedly declaring in a nested for loop slow down a program?
body: <p>With a nested for loop like:</p>
  
  <pre><code>for (int i=0; i&lt;N; i++)
      for (int j=0; j&lt;N; j++)
  </code></pre>
  
  <p>Is it better to do:</p>
  
  <pre><code>for (int i=0, j; i&lt;N; i++)    //Declare them both at once
      for (j=0; j&lt;N; j++)
  </code></pre>
  
  <p>because declaring j over and over again will create space on stack and discard repeatedly? For both small and large programs.</p>