title: output memory adresses of malloc
body: <p>The memory address of each element of an array are displayed as</p>
  
  <pre><code>int first[4], n=4;
  for(int i=0;i&lt;n;i++){
     cout&lt;&lt;"first#" &lt;&lt;i&lt;&lt;" "&lt;&lt;&amp;first[i]&lt;&lt;endl; 
  }
  </code></pre>
  
  <p>I want to ask how to output the address of each element allocated using malloc?</p>
  
  <pre><code>int *first = (int *) calloc(n, sizeof(int));
  </code></pre>