fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. for (int i=0;i < 5;i++){
  5. printf("%d\n", i);
  6. }
  7.  
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
0
1
2
3
4