title: How to create at runtime a two dimensional array in C
body: <p>I cannot create a 2D array from 2 variables (eg <code>int arr[i][j]</code> not allowed) so how would I create a dynamically sized 2D array?</p>
  
  <p>The dimensions of the array are only known at runtime in my program.  The array is to represent a grid.  How would I code this in C?  </p>