#include<iostream>
using namespace std;
int main()
{
int *p=new int(10);
cout<<"address of pointer itself:"<<&p<<endl;
cout<<"address of integer :"<<p<<endl;
cout<<"integer value:"<<*p<<endl;
delete p;
}
读取堆区的地址
最新推荐文章于 2021-09-21 21:23:44 发布