fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. // DON'T DO THIS AT HOME - IT'S UNDEFINED BEHAVIOR!
  6. int a = 123;
  7. size_t addr = (size_t)&a;
  8. printf("a: %d, *addr: %d", a, *(int*)addr);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 4468KB
stdin
Standard input is empty
stdout
a: 123, *addr: 123