fork(1) download
  1. #include <stdio.h>
  2.  
  3. int f() {
  4. char i;
  5. for (i=0;i<30;++i) {
  6. char *p1 = (&i) + i;
  7. printf("%i ", *p1);
  8. }
  9. printf("\n");
  10. }
  11.  
  12. int main(void) {
  13. f(10);
  14. f(20);
  15. f(30);
  16. f(40);
  17. f(50);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
0 1 0 0 0 36 78 -54 -65 -12 95 123 -73 -43 -125 4 8 10 0 0 0 0 0 0 0 91 -123 4 8 -12 
0 1 0 0 0 36 78 -54 -65 -12 95 123 -73 -31 -125 4 8 20 0 0 0 0 0 0 0 91 -123 4 8 -12 
0 1 0 0 0 36 78 -54 -65 -12 95 123 -73 -19 -125 4 8 30 0 0 0 0 0 0 0 91 -123 4 8 -12 
0 1 0 0 0 36 78 -54 -65 -12 95 123 -73 -7 -125 4 8 40 0 0 0 0 0 0 0 91 -123 4 8 -12 
0 1 0 0 0 36 78 -54 -65 -12 95 123 -73 5 -124 4 8 50 0 0 0 0 0 0 0 91 -123 4 8 -12