A pointer will just go out of scope. You don’t need to “delete” a pointer. You only need to free the memory a pointer points to.
1
solved How to delete a pointer but not delete the object which the pointer point to? C++ [closed]
A pointer will just go out of scope. You don’t need to “delete” a pointer. You only need to free the memory a pointer points to.
1
solved How to delete a pointer but not delete the object which the pointer point to? C++ [closed]