S
Sean P.
why does "int *iptr = new int[1024];" use up to 8KB of memory when i
only declared a ptr to 1024 integers? Intuitively, it should be only
1024*sizeof(int)+4 (for the pointer). Does C++ add an accompanying
pointer to every element or something? thanks.
only declared a ptr to 1024 integers? Intuitively, it should be only
1024*sizeof(int)+4 (for the pointer). Does C++ add an accompanying
pointer to every element or something? thanks.