class abc { int x ; }; int main() { abc *A = new abc ; cout<< static_cast(A) << endl ; delete A ; cout<< static_cast&
it is because you are deleting the pointers.do not delete them you will see the difference.
abc *A = new abc ; abc *B = new abc ;