Question: Choose the correct answer after considering the following statements: 1. A weak pointer can be used to delete the object to which it points
Choose the correct answer after considering the following statements: 1. A weak pointer can be used to delete the object to which it points if a temporary shared pointer is created from the weak pointer. 2. Proper use of weak pointers can prevent memory leaks. 3. Weak pointers observe and don't own resources. O Only 1 is true O Only 1 and 3 are true O Only 3 is true O Only 2 and 3 are true O Only 2 is true
Step by Step Solution
3.37 Rating (163 Votes )
There are 3 Steps involved in it
The correct answer to the question is the 4th one ie Only ... View full answer
Get step-by-step solutions from verified subject matter experts
