How many times is the digit 3 printed by the following program? main() {…
How many times is the digit 3 printed by the following program?
main()
{
printf("1"); fork();
printf("2"); fork();
fork(); printf("3");
}- A.
16
- B.
8
- C.
4
- D.
2
Attempted by 387 students.
Sign up free to check your answer
Sign up freeLoading lesson…