C++: delete bidimensional array

Started by
2 comments, last by Alessandro 12 years, 8 months ago
I've googled but I couldn't really find an answer. Is it possible to delete the following array:

float map[hgrid*vgrid][3];

Thanks
Advertisement
If you haven't created it with new there is no need to delete it. It will be deleted automatically when it goes out of scope.
Or to put it more bluntly: No, you cannot invoke the 'delete' keyword to delete that array.
"In order to understand recursion, you must first understand recursion."
My website dedicated to sorting algorithms
Thank you ! :)

This topic is closed to new replies.

Advertisement