Computer Science, asked by sandeepmorya6274, 9 months ago

What happens when a pointer is deleted twice

Answers

Answered by zakiabasheer2016
0

Answer:

If you delete a pointer and set it to NULL, it it possibly cannot have an adverse effect. It is safe. However, if a pointer is deleted an not nullified  then it can cause a trap

Explanation:

I know that a "deleting the same memory twice" error can happen when two pointers address the same dynamically allocated object. If delete is applied to one of the pointers then the object's memory is returned to the free store. If we subsequently delete the second pointer then the free store may be corrupted.

Answered by dm1217569
0

Answer:

What happens when a pointer is deleted twice

Explanation:

We dont open any thing

and dont play anything

Similar questions