Home »
C++ Quiz Questions
C++ | new and delete operators | question 3
Which statement is trust about new operator in C++?
- new is an operator which calls the constructor also
- new allocates memory at run time and assigns newly allocated memory block’s memory too the pointer
- 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++