fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x = 10;
  5. int *p;
  6.  
  7. p = &x;
  8.  
  9. printf("x=%d\n",x);
  10. printf("x_address=%p\n",&x);
  11. printf("p=%p\n",p);
  12. printf("p->%d\n",*p);
  13. // your code goes here
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
x=10
x_address=0x7ffe86d925f4
p=0x7ffe86d925f4
p->10