fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int x;
  5. x=5;
  6. printf("x:%d\n",x);
  7. printf("&x:%p\n",&x);
  8. int *a;
  9. a=&x;
  10. printf("a:%p\n",a);
  11. printf("a:%d\n",*a);
  12. return 0;
  13. }
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
x:5
&x:0x7ffc0fdbe484
a:0x7ffc0fdbe484
a:5