Explain what happens when a pointer is deleted twice.A pointer if not nullified and deleted twice, leads to a trap. If set to null, it wont have much affect if deleted twice.
Explain what happens when a pointer is deleted twice.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.