If I delete a pointer as follows for example:
delete myPointer;
And, after that did not assign 0
Not always but it can change. In designing a hash table , I found the address to have changed after around 30 error-free tests on 1000 objects. It changed exactly after a delete operation. Solution: use T_ *const to store a side address to the object that will be deleted where T_ is pointer type and the const qualifier to ensure the address doesn't change.