title: C malloc allocated only 8 bytes for int *
body: <p>I'm trying to create a pointer to a <code>6</code> element <code>int</code> in a function to return it later, so for that purpose I'm using <code>malloc</code>, but it seems to be acting not as I expected. Here's the code:</p>
  
  <pre><code>int j = 0;
  for (;j &lt; 5; j++) {
      int * intBig = malloc(j * sizeof(int));
      printf("sizeof intBig - %ld\n", sizeof(intBig));
  }
  </code></pre>
  
  <p>Prints the same number <code>8</code> bytes as the <code>sizeof(intBig)</code> at each iteration. Whereas I would expect a series of <code>4, 8, 12, 16</code>. What am I missing in this instance?</p>