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