title: Compilation Warning.Excess elements in array initializer
body: <p>I was implementing a multi dimensional array and using pointers and testing the correctness of the address allotment.Even though the program ran perfectly and all the addresses were same as i expected.But there was a compilation warning <code>[Warning] excess elements in array initializer</code>.Can anyone explain about the warning.The code is below....</p>
  
  <pre><code>#include&lt;stdio.h&gt;
      int main(){
      int c[3][2][2] = {{{2,5},{7,9},{3,4},{6,1},{0,8},{11,13}}};
      printf("%d %d %d %d",c,*c,c[0],&amp;c[0][0]);
      return 0;
  }
  </code></pre>
  
  <p>The error summary is like this</p>
  
  <pre><code>        In function 'main':
  3   2   [Warning] excess elements in array initializer
  3   2   [Warning] (near initialization for 'c[0]')
  3   2   [Warning] excess elements in array initializer
  3   2   [Warning] (near initialization for 'c[0]')
  3   2   [Warning] excess elements in array initializer
  3   2   [Warning] (near initialization for 'c[0]')
  3   2   [Warning] excess elements in array initializer
  3   2   [Warning] (near initialization for 'c[0]')
  </code></pre>