title: How do I call a two-dimensional array created by a function outside of main?
body: <p>I'm puzzled as to how the header, return and call would look.</p>
  
  <p>This is what gave me the error "Wrong pointer type"</p>
  
  <pre><code>        int **CreatesArray (int r,int c)
      {
          int table [r][c];
          printf ("Enter clause orientations.\n");
          for (int i = 0; i&lt;r;i++)
              {
                  for (int j = 0;j&lt;c;j++)
                      {
                          scanf ("%d",&amp;table[i][j]);
                      }
              }
          return table;
      }
  </code></pre>
  
  <p>Function call from main: </p>
  
  <pre><code>int **tableaux;
  
  tableaux = CreatesArray(ROWS,COLS);
  </code></pre>
  
  <p>Why is this not the correct way of doing it? </p>
  
  <p>NOTE: Will post TableCreator shortly</p>