title: Cannot understand return value of sizeof()
body: <p>I have this in my code:</p>
  
  <pre><code>int x = 4;
  char* array = malloc(x*sizeof(char));
  size_t arraysize = sizeof (array);
  printf("arraysize: %zu\n", arraysize);
  </code></pre>
  
  <p>This code prints out, </p>
  
  <blockquote>
    <p>arraysize: 8</p>
  </blockquote>
  
  <p>Why is it 8 and not 4? (Since 4*sizeof(char) = 4 * 1)</p>