The object will be destroyed, calling the object's destructor.
The pointer will still point to the same memory location.
Accessing it is an undefined behavior, so it could do anything at all.
You cannot assume the behavior of this, but if your code contains only this code then there might be a good chance that it will effectively print 1 as the memory will not have been overwriten.
But do not assume this will be the case !