|
Nothing in the ANSI C/C++ state that memory allocated by new or malloc will be filled with NULL, all it states is that the memory will be reserved for your use..
What you want to check for when creating it, is if malloc returns NULL, then an error has happened, same thing goes for new.. but nothing ever said that it would initialy set the memory allocated to NULL.
edit... woohoo, my number 700 post... yay me...
|