To help prevent memory leaks from occurring in C++ 11, a ________ automatically deletes a chunk of dynamically allocated memory when the memory is no longer being used.
A) null pointer
B) smart pointer
C) dereferenced pointer
D) A and C only
E) None of these
Correct Answer:
Verified
Q10: In C++11, the nullptr keyword was introduced
Q18: It is legal to subtract a pointer
Q27: If a variable uses more than one
Q28: Look at the following code: 
Q31: A pointer variable may be initialized with
Q31: Dynamic memory allocation occurs
A) when a new
Q33: The following statement: Q34: If you are using an older compiler Q36: What will the following code output? Q37: An array name is a pointer constant![]()

Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents