Initialize malloc in zeros instead of using calloc
<p>I want to create dynamic array in the heap using <code>malloc</code>.</p>

<pre><code>int *c = malloc(5 * sizeof(int));
</code></pre>

<p>The problem is that it is <strong>not</strong> initialized by zero and I'd like avoid using <code>calloc</code> as much as I can since I don't know how safe it is.</p>

<p>If I use <code>calloc</code>, is it going to do the same <code>malloc</code> job?</p>