Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 262 Bytes

fork_102.md

File metadata and controls

18 lines (14 loc) · 262 Bytes

Fork 101

Answer the questions given the following program (without running it):

#include<stdio.h>

int main()
{
fork();
fork();
printf("\nyay\n");
return 0;
}
  1. How many times the word "yay" will be printed?
  2. How many processes will be created?