Skip to main content
gamedev.net
🔒 Locked

C++: dynamic array memory allocation

Started by Alessandro 2 replies 350+ views
ToohrVyk
ToohrVyk
new throws an exception if the allocation fails. if no exception is thrown, everything is fine.
Rainault
Rainault
If you're using C++, you almost certainly do not want to use malloc. new and delete/delete[] should serve all of your C++ dynamic memory allocation needs.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.