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 

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

1 Expert Approved Answer
Step: 1 Unlock

The correct answer to the question is the 4th one ie Only ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Engineering Questions!