Dinamic array don't allocate the same numbers of elements than stack array : <p>I'm trying to create an array of 18 elements of BYTE whit calloc but don't know why calloc only give me back only 8 elements, I did it manually in the stack and the program works.</p>

<pre><code>int arrsize;
BYTE copyrow[18];
arrsize = sizeof(copyrow);
</code></pre>

<p>When i compile here arrsize = to 18, so, evrething is fine.
But when I use calloc:</p>

<pre><code>int arrsize;
BYTE *copyrow;
copyrow = calloc(18, sizeof(BYTE));
arrsize = sizeof(copyrow);
</code></pre>

<p>Now the compiler say arrsize = to 8, so I don't know what's happening here. Need help.</p>
