int *i = new int; cout << &i << endl << i; delete i; i = 0;
我得到这个输出:
0031FB2B
0057C200
为什么2个不同的地址 是不是&引用动态指针的地址,而i本身是指针的地址,它应该是相同的地址?
c++ pointers memory-address
c++ ×1
memory-address ×1
pointers ×1