Delete 2d dynamic array. Are these two things working exactly same to delete 2d?
Following is the code to delete a 2d dynamic array. Are these two groups of codes exactly same?
for( int i = 0 ; i < ROWS ; i++ )
delete  dynamicArray[i] ;
delete  dynamicArray ;
void FreeDynamicArray(T** dArray)
delete  *dArray;
delete  dArray;
I don't understand what delete *dArray is doing?
Topic archived. No new replies allowed.