UNIX Operating System Question:

Predict the output of the following program code?

Answer:

main()
{
fork(); fork(); fork();
printf("Hello World!");
}
Answer:
"Hello World" will be printed 8 times.
Explanation:
2^n times where n is the number of calls to fork()

Read All 23 UNIX Operating System Questions
Previous QuestionNext Question
Predict the output of the following program code in UNIX?List the system calls used for process management in UNIX?