#include <stdio.h> #include <math.h> #include <malloc.h> main(){ int a,b; int *p1,*p2; a = 100; b = 20; p1=&a; p2=&b; printf("%d,%d/n",a,b); printf("%d,%d/n",p1,p2); printf("%d,%d/n",*p1,*p2); } 结果: 100,20 1245052,1245048 100,20 Press any key to continue