Solved

Which Statement About Class Unique_ptr (Of the New C++ Standard)

Question 9

Multiple Choice

Which statement about class unique_ptr (of the new C++ standard) and dynamic memory allocation is false?


A) An object of class unique_ptr maintains a pointer to dynamically allocated memory.
B) When a unique_ptr object destructor is called (for example, when a unique_ptr object goes out of scope) , it performs a destroy operation on its pointer data member.
C) Class template unique_ptr provides overloaded operators * and -> so that a unique_ptr object can be used just as a regular pointer variable is.
D) Class unique_ptr is part of the new C++ standard and it replaces the deprecated auto_ptr class.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions