fork download
  1. /* main program illustrating the UNIX fork() system call.
  2. Compile using cc -o main main.c
  3. */
  4. #include <stdio.h>
  5. main() {
  6. if(fork() || fork()) {
  7. printf("yes\n");
  8. }
  9. } /* end if */
Success #stdin #stdout 0s 5360KB
stdin
Standard input is empty
stdout
yes
yes