title: What are some useful examples of malloc() in C?
body: <p>I'm just reading about <code>malloc()</code> in C.</p>
  
  <p>The <a href="http://en.wikipedia.org/wiki/Malloc" rel="noreferrer">Wikipedia article</a> provides an <a href="http://en.wikipedia.org/wiki/Malloc#Usage_example" rel="noreferrer">example</a>, however it justs allocate enough memory for an array of 10 ints in comparison with <code>int array[10]</code>. Not very useful.</p>
  
  <p>When would you decided to use <code>malloc()</code> over C handling the memory for you?</p>