Use the delete operator only on pointers that were
A) never used
B) not correctly initialized
C) created with the new operator
D) dereferenced inappropriately
E) None of these
Correct Answer:
Verified
Q1: The weak_ptr can share ownership of a
Q2: The _, also known as the address
Q3: The unique_ptr is the sole owner of
Q4: What does the following statement do?
Double *num2;
A)
Q5: To use any of the smart pointers
Q7: Assuming myValues is an array of int
Q8: C++ does not perform array bounds checking,
Q9: In C++11, the _ keyword was introduced
Q10: In C++11, the nullptr keyword was introduced
Q11: When the less than operator (<) is
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