title: How to allocate a 3 dimensional array in C?
body: <p>Creating two dimensional arrays in C is easy:</p>
  
  <pre><code>char (*arr)[50] = malloc(sizeof(arr) * 10 * 50); // 10x50 matrix
  </code></pre>
  
  <p>How do you do three dimensional arrays in C? It doesn't look like I can do something like:</p>
  
  <pre><code>char (**arr)[50] = malloc(sizeof(arr) * 10 * 20 * 50); // 10x20x50 matrix?
  </code></pre>