C++
What happe ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
What happens if the standard
new
operator cannot allocate memory for an object?
The standard
new
operator should always allocate memory for the requested object, so it will return a pointer to the allocated memory for the object.
0 will be returned
An exception will be thrown
Explanation
Get an explanation when it's available:
Subscribe
operator new
exceptions
memory
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
C
++
Quiz
Login to learn C++
or
Read more about
C++ Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment