#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/w6826301/p/17793684.html