Possible Duplicate:
Will new return NULL in any case?
Say i have a class Car and i create an object
Car *newcar = new Car();
if(newcar==NULL) //is it valid to check for NULL if new runs out of memory
{
}
Possible Duplicate:
Will new return NULL in any case?
Say i have a class Car and i create an object
Car *newcar = new Car();
if(newcar==NULL) //is it valid to check for NULL if new runs out of memory
{
}