fork(1) download
  1. #include <stdio.h>
  2.  
  3. void function(int a, int b, int c)
  4. {
  5. char buf1[5];
  6. char buf2[10];
  7. int *retptr;
  8.  
  9. retptr = (void*)(buf2 + 40);
  10. (*retptr) += 8;
  11. }
  12.  
  13. int main(void)
  14. {
  15. int x;
  16.  
  17. x = 0;
  18. function(1,2,3);
  19. x = 1;
  20. printf("%d\n", x);
  21. return 0;
  22. }
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
1