fork download
  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5.  
  6. void function(int *i) {
  7. int *_prev_int = (int *) ((long unsigned int) i - sizeof(int)) ;
  8. printf("%d\n", *_prev_int );
  9.  
  10. int *_next_int = (int *) ((long unsigned int) i + sizeof(int)) ;
  11. printf("%d\n", *_next_int );
  12. }
  13.  
  14. void main(void)
  15. {
  16. int x = 152;
  17. int y = 234;
  18. function(&y);
  19. }
Runtime error #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
-1076388532
-1217768540