title: error: ‘for’ loop initial declarations are only allowed in C99 mode
body: <p>I am getting the below error, what is std=c99/std=gnu99 mode?</p>
  
  <p>source Code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  void funct(int[5]);
  
  int main() 
  {        
      int Arr[5]={1,2,3,4,5};
      funct(Arr);
      for(int j=0;j&lt;5;j++)
      printf("%d",Arr[j]);
  }
  
  void funct(int p[5]) {
          int i,j;
          for(i=6,j=0;i&lt;11;i++,j++)
              p[j]=i;
  }
  
  
  Error Message:
  hello.c: In function ‘main’:
  hello.c:11:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
  for(int j=0;j&lt;5;j++)
        ^
  hello.c:11:2: note: use option -std=c99 or -std=gnu99 to compile your code`
  </code></pre>