1.

Predict The Output Of The Following Program Code 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()

"Hello World" will be printed 8 times.

Explanation:

2^n times where n is the number of calls to fork()



Discussion

No Comment Found