#include <stdio.h> int main(void) { int a=10; int *p = &a; *p = 89; printf("变量值a=%d a=%d\n", a,*p);//0x7fff8af18554 printf("指针地址p=%p p=%p\n",p,&a);//0x7fff8af18554 printf("指针地址p=%#lx p=%#lx\n",p,&a);//0x7fff8af18554 return 0; }
标签:amp pre return print printf log div oid c语言
#include <stdio.h> int main(void) { int a=10; int *p = &a; *p = 89; printf("变量值a=%d a=%d\n", a,*p);//0x7fff8af18554 printf("指针地址p=%p p=%p\n",p,&a);//0x7fff8af18554 printf("指针地址p=%#lx p=%#lx\n",p,&a);//0x7fff8af18554 return 0; }
标签:amp pre return print printf log div oid c语言
原文地址:https://www.cnblogs.com/wanglijun/p/8503129.html