title: C - Does freeing an array of pointers also free what they're pointing to?
body: <p>Say I have an array of pointers to structs that contain a string each and so for something like this:</p>
  
  <pre><code>printf("%s\n", array[0]);
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>Hello.
  </code></pre>
  
  <p>If I perform a <code>free(array)</code> will this free what <code>array[0]</code> is pointing to? (<code>"Hello."</code>).</p>
  
  <p>I've spent hours attempting to manually free each element and all I get is crashes. I'm hoping this is a shortcut :/</p>