title: assign to int[][4] in C/C++
body: <p>How do I assign to a multi dimensional array without casting [][] to **? I have an example below. What I found was <a href="https://stackoverflow.com/questions/936687/how-do-i-declare-a-2d-array-in-c-using-new">How do I declare a 2d array in C++ using new?</a> but that uses <code>int**</code> rather then <code>new int[][4]</code>.</p>
  
  <pre><code>#include&lt;cassert&gt;
  
  int a[8][4];
  int*b = &amp;a[0][0];
  int*c = &amp;a[2][0];
  int*d = &amp;a[0][2];
  
  int main() {
      //shows right side is closer
      assert(d-b==2);
      assert(c-b==8); 
      auto aa = new int[][4];
      //set the right side, but is a syntax error
      //aa[][0] = new int[8];
      //type error
      aa[0] = new int[8];
  }
  </code></pre>