title: dynamic allocating array of arrays in C
body: <p>I don't truly understand some basic things in C like dynamically allocating array of arrays.
  I know you can do:</p>
  
  <pre><code>int **m;
  </code></pre>
  
  <p>in order to declare a 2 dimensional array (which subsequently would be allocated using some *alloc function). Also it can be "easily" accessed by doing <code>*(*(m + line) + column)</code>. But how should I assign a value to an element from that array? Using gcc the following statement <code>m[line][column] = 12;</code> fails with a segmentation fault.</p>
  
  <p>Any article/docs will be appreciated. :-)</p>