title: C: for loop int initial declaration
body: <p>Can someone elaborate on the following gcc error?</p>
  
  <pre><code>$ gcc -o Ctutorial/temptable.out temptable.c 
  temptable.c: In function ‘main’:
  temptable.c:5: error: ‘for’ loop initial declaration used outside C99 mode
  </code></pre>
  
  <p>temptable.c:</p>
  
  <pre><code>...
  /* print Fahrenheit-Celsius Table */
  main()
  {
      for(int i = 0; i &lt;= 300; i += 20)
      {
          printf("F=%d C=%d\n",i, (i-32) / 9);        
      }
  }
  </code></pre>
  
  <p>P.S: I vaguely recall that <code>int i</code> should be declared before a <code>for</code> loop. I should state that I am looking for an answer that gives a historical context of C standard.</p>