title: Return a 2d array from a function
body: <p>I am a newbie to C.
  I am trying to return a 2d array from a function.
  It is something like this</p>
  
  <pre><code>int *MakeGridOfCounts(int Grid[][6])
  {
    int cGrid[6][6] = {{0, }, {0, }, {0, }, {0, }, {0, }, {0, }};
    int (*p)[6] = cGrid;
    return (int*)p;
  }
  </code></pre>
  
  <p>I know this causes an error, need help. thanks</p>