title: Difference between malloc and calloc?
body: <p>What is the difference between doing:</p>
  <pre><code>ptr = malloc (MAXELEMS * sizeof(char *));
  </code></pre>
  <p>or:</p>
  <pre><code>ptr = calloc (MAXELEMS, sizeof(char*));
  </code></pre>
  <p>When is it a good idea to use calloc over malloc or vice versa?</p>