title: C printf array int matching format
body: <p>This c code </p>
  
  <pre><code>int rhdDEboard2(){
  
      int board[64]={0};
      int rc;
      printf("\n");
      for (rc=0;rc&lt;8;rc++)
          printf("\t %i %i %i %i %i %i %i %i\n",board[rc]);
      printf("\n");
      return 0;
  }
  </code></pre>
  
  <p>compiled with MinGW in Win8 PC gives this error:
  : warning: format '%i' expects a matching 'int' argument [-Wformat]</p>
  
  <p>I do not understand why! The board array is declared as type int..isn't it?
  (Does C treat the array as a pointer type?). I have tried using %p as format specifier but that doesn't work and nor does using %d. I understand what the warning says, but not why it says it, nor how to fix it, and feel I must be missing something quite basic, simple and straightforward here, but I do not understand this compiler warning.I'm grateful for help to try and get me to understand this C compiler warning and how I should fix it..many thanks</p>