title: defining 2D array in c in VS Express 2012
body: <pre><code>#include&lt;stdio.h&gt;
  void main()//this is the way that we pragram in c
  {
    int arr[][]={{1,2},{1,2},{1,3}};//in class it wasnt required to initialize both
  }
  </code></pre>
  
  <p>the errors:</p>
  
  <blockquote>
    <p>Error 1   error C2087: 'arr' : missing subscript<br>
    Error 2   error C2078: too many initializers<br>
    3 IntelliSense: an array may not have elements of this type   </p>
  </blockquote>
  
  <p>I am a beginner , and i saw in class that the professor did the same thing.
  also i asked my instructor and he told me that it should raise this error.</p>
  
  <p>can someone please addres me to where and what is the problem?</p>