title: Will new operator return NULL?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/550451/will-new-return-null-in-any-case">Will new return NULL in any case?</a>  </p>
  </blockquote>
  
  
  
  <p>Say i have a class Car and i create an object </p>
  
  <pre><code>Car *newcar  = new Car();
  if(newcar==NULL) //is it valid to check for NULL if new runs out of memory
  {
  }
  </code></pre>