Krishna Logo
qa training in canada now
Divied
Call: Anusha @ 1 (877) 864-8462

 

Latest News
Home Navigation Divied
INTERVIEW Navigation Divied UNIX INTERVIEW QUESTIONS Navigation Divied Predict the output of the following program code?
Predict The Output Of The Following Program Code?
Predict the output of the following program code?

main ()
{
fork(); fork(); fork();
printf("Hello World!");
}

Ans:
"Hello World" will be printed 8 times.
Explanation:
2^n times where n is the number of calls to fork()


Shadow Bottom
 
 
© 2005 -