#include <iostream> using namespace std; int main(){ int a=10; //声明指针 p int *p; //讲指针p指向变量a的内存地址 p=&a; cout<<"a的值="<<a<<endl; cout<<"a的内存地址="<<p<<endl; cout<<"指针p的指向内存地址的值"<<*p<<endl; return 0; }
标签:std,10,内存地址,int,main,指针 From: https://www.cnblogs.com/guoliheng/p/17793698.html