fork download
  1. #include <stdio.h>
  2.  
  3. int main (int argc, char *argv[])
  4. {
  5. int x=2, *ampx, starampx, starx;
  6.  
  7. printf("x=");
  8. printf("%d\n",x);
  9.  
  10. ampx=&x;
  11. printf("&x=");
  12. printf("%p\n",&x);
  13.  
  14. starampx=*ampx;
  15. printf("*&x=");
  16. printf("%d\n",starampx);
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
x=2
&x=0xbfaa3f0c
*&x=2