阅读背景:

为什么指针/变量内存地址不会改变?

来源:互联网 
#include <iostream>
using namespace std;

int main(void)
{
    int *ptr = new int;
    cout << "Memory address of ptr:" << ptr << endl;
    cin.get();
    delete ptr;

    return 0;
}
#include <iostream>
using namespace std;

int m



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: