C++ | new and delete | Question 5
Is it fine to call delete twice for a pointer?
Explanation: It is undefined behavior to call delete twice on a pointer.
Anything can happen, the program may crash or produce nothing.
My Personal Notes arrow_drop_up
Please Login to comment...