Home » C++ Quiz Questions

C++ | new and delete operators | question 3

Which statement is trust about new operator in C++?

  1. new is an operator which calls the constructor also
  2. new allocates memory at run time and assigns newly allocated memory block’s memory too the pointer
  3. After allocating the memory new operators returns the pointer of the same type

(1) (1) and (2)

(2) (1) and (3)

(3) (2) and (3)

(4) All - (1), (2) and (3)

Answer: (4)

Explanation:

All these statements are true about “new operator in C++”, read more: new operator in C++



Comments and Discussions!

Load comments ↻





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