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. return 0;
  9. }
  10.  
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
x的值是47,x的地址是0x7ffcbb6a2234