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. int main()
  6. {
  7. int pid1,pid2,pid3;
  8. printf("A");
  9. pid1=fork();
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
AA