Question OS-BAS-0062
HardHow many times is 'X' printed?
for (int i = 0; i < 3; i++)
fork();
printf("X\n");
- A.
6
- B.
8
- C.
7
- D.
3
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
OS Basics question
How many times is 'X' printed?
for (int i = 0; i < 3; i++)
fork();
printf("X\n");
6
8
7
3
Sign up free to see the answer and a step-by-step explanation.