mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-04 15:49:11 +00:00
291 B
291 B
Fork 102
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;
}
- How many times the word "yay" will be printed?
- How many processes will be created?