InterviewSolution
Saved Bookmarks
| 1. |
Predict The Output Of The Following Program Code Main() { Fork(); Fork(); Fork(); Printf("hello World!"); } |
|
Answer» "HELLO World" will be printed 8 times. 2^N times where n is the number of CALLS to fork() "Hello World" will be printed 8 times. Explanation: 2^n times where n is the number of calls to fork() |
|