Predict the output of the following program code
main()
{
fork();
printf("Hello World!");
}

Answers were Sorted based on User's Feedback



Predict the output of the following program code main() { fork(); printf("Hello World!&qu..

Answer / guest

The output is

Hello World!Hello World!

Is This Answer Correct ?    24 Yes 3 No

Predict the output of the following program code main() { fork(); printf("Hello World!&qu..

Answer / shilpa

prints Hello world Hello world
All the statements after the call to fork() will be
executed twice

Is This Answer Correct ?    13 Yes 3 No

Predict the output of the following program code main() { fork(); printf("Hello World!&qu..

Answer / rocky

Hello World!Hello World!

Is This Answer Correct ?    11 Yes 1 No

Post New Answer

More Unix IPC Interview Questions

what is the condition required for dead lock in unix sustem ?

2 Answers  


How to write the program on full-duplex communication using 2 FIFOs

0 Answers  


What is an advantage of executing a process in background?

2 Answers  


What is Inode.

2 Answers   HCL,


what is the process id for kernell process

3 Answers  






Predict the output of the following program code main() { fork(); printf("Hello World!"); }

3 Answers  


What is a Daemon?

3 Answers  


What are two different models of ipc differentiate both?

0 Answers  


How to write the program on full-duplex communication on biderctional(e.g using two pipes)

2 Answers   Infosys,


What is i-node numbers?

0 Answers  


Explain how do you execute one program from within another?

0 Answers  


What is daemon?

0 Answers  


Categories