On failure the 'new' operator returns?

159. On failure, the "new" operator returns?

  1. NULL
  2. -1
  3. bad_alloc exception
  4. None of these

Answer: C) bad_alloc exception

Explanation:

On failure, the "new" operator returns a "bad_alloc" exception.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.