fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int x=47,*p;
  6. p=&x;
  7. printf("x的值是%d,x的地址是%p\n",x,x);
  8. printf("指针p的值是%p\n",p);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
x的值是47,x的地址是0x2f
指针p的值是0x7ffdf2b082b4