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