New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPA-21-02 Topic 5 Question 33 Discussion

Actual exam question for C++ Institute's CPA-21-02 exam
Question #: 33
Topic #: 5
[All CPA-21-02 Questions]

Which line of code inserted instead of the comment will make the following code run properly without causing memory leaks?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Salina
2 days ago
I think the correct answer is D) ~Base() { delete ptr; }
upvoted 0 times
...

Save Cancel