?
What happens if a pointer is deleted twice in a program as shown in the following C++ statements?
What happens if a pointer is deleted twice in a program as shown in the following C++ statements?
int *ptr = new int;
delete ptr;
delete ptr;
int *ptr = new int;
delete ptr;
delete ptr;
Join the Discussion
Login to post a comment or share your explanation.
Login