title: Byte allocation different for dynamic vs. static char array of same size?
body: <p>So, I ran this code in my IDE. Can anyone explain the reason why the same amount of memory isn't allocated to both of these arrays when they should be the same size?</p>
  <pre><code>char* dynamicCharArr = new char[15]; //allocates 8 bytes
  cout &lt;&lt; sizeof(dynamicCharArr) &lt;&lt; endl;
  
  char staticCharArr[15]; //allocates 15 bytes
  cout &lt;&lt; sizeof(staticCharArr) &lt;&lt; endl;
  </code></pre>