点击(此处)折叠或打开




  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a=10;
  5. printf("&a= %xn",&a);
  6. printf("a= %dn",*(int *)&a);
  7. //    printf("a= %dn",*(int *)0xbf93fb9c);
  8. return 0;
  9. }


[root@bogon 桌面]# gcc aaa.c

[root@bogon 桌面]# ./a.out

&a= bf93fb9c

a= 10

[root@bogon 桌面]#