In simple 1D array:
node *nodes = new node[MAX_NODES];
Deleting by:
delete [] nodes;
Deletes all the nodes allocated in the array.
But in this case:
float (*buildingArray)[3] = new float[10][3];
Does this statement make buildingArray
a single dimension array of 3 float pointers? And this is the deallocation line:
delete[] buildingArray;
Does the above deallocation delete
the array, but I am doubtful about whether it will delete its references?