First page Back Continue Last page Graphics
Dynamic Arrays (cont.)
So what does the compiler do with that statement?
Allocates a location large enough to store a pointer variable (an address) and calls it my_array.
Sets up a call to new passing it 10*4 or 40.
At run time, 40 bytes of memory are allocated (without a name) and the address of the starting byte is put in the pointer variable my_array.