#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;
}

  

相关文章:

  • 2021-11-18
  • 2021-11-25
  • 2022-12-23
  • 2021-11-11
  • 2021-04-21
  • 2022-02-10
  • 2022-12-23
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案