1.

Predict The Output Of The Following Program Code?<br> Main() <br> { <br> Fork(); Fork(); Fork(); <br> Printf("hello World!"); <br> }

Answer»

"Hello World" will be PRINTED 8 TIMES.

Explanation: 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();



Discussion

No Comment Found