title: malloc zeroing out memory?
body: <p>Given this C code compiled with gcc 4.3.3</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
   
  int main(int argc, char * argv[])
  {
   
      int * i;
      
      i = malloc(sizeof(int));
      
      printf(&quot;%d\n&quot;, *i);
      return 0;
   
  }
  </code></pre>
  <p>I would expect the output to be whatever was in the memory that malloc() returns, but instead the output is 0. Is malloc zeroing out the memory it returns? If so, why?</p>