fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. double y, *x;
  5. x = &y;
  6. printf("before decrease %p\n", x);
  7. x -= 2;
  8. printf("after decrease %p\n", x);
  9.  
  10. x = &y;
  11. printf("before increase %p\n", x);
  12. x += 2;
  13. printf("after increase %p\n", x);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
before decrease 0xbfa0e698
after decrease 0xbfa0e688
before increase 0xbfa0e698
after increase 0xbfa0e6a8