I have a program that I've written that requires me to declare an array as such
float (*array)[3] = new float[faces * 3][3];
Now I understand the syntax and all, this is an array of pointers to fixed size arrays. What I don't understand is the underlying organization behind this. Since there was only one memory allocation (for the array of pointers) how does the memory for the fixed size arrays get allocated?
Along the same thread, since there was only one allocation there should be one deletion, meaning the array is deleted by
delete[] array;
but I'm confused as to how this gets all of the memory, given that it seems only the array of pointers has been deleted, as opposed to the memory they pointed to.