devops-exercises/exercises/os/fork_102.md
Nilesh Londhe ed85173a0b
Update fork_102.md (#151)
This include is needed

```
#include <unistd.h> 
```
2021-09-15 13:49:07 +03:00

20 lines
291 B
Markdown

## Fork 101
Answer the questions given the following program (without running it):
```
#include<stdio.h>
#include <unistd.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?