fork download
  1. #include <stdio.h>
  2.  
  3. void foo(void *x) {
  4. int *y = x;
  5. printf("%d\n", *y);
  6. }
  7.  
  8. int main(void) {
  9. for (int i = 0; i < 5; i++) {
  10. foo((int[]){i});
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 4488KB
stdin
Standard input is empty
stdout
0
1
2
3
4