title: Storing RGB values in a dynamic multidimensional array
body: <p>So I was wondering how I could store multiple RGB values, that I don't know how many there are, in an array/multidimensional array in C.</p>
  
  <p>I've heard of <em>malloc</em> but I'm not sure of how to use it yet on multidimensional arrays.</p>
  
  <p>E.g. I have <strong>n</strong> rgb values:</p>
  
  <pre><code>array[n][3] = {
      array[i] = {ri, gi, bi}, etc...
  }
  </code></pre>
  
  <p>Thanks!</p>