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

Explain about daemon?

0 Answers  


What is a Daemon?

3 Answers  


Please describe the initial process sequence while the system boots up?

0 Answers  


How to write the program on full-duplex communication on bidirectional?

0 Answers  


What are various IDs associated with a process?

3 Answers  






what is the very first process created by kernell

5 Answers  


What is ipc in unix?

0 Answers  


What are the various schemes available in ipc?

0 Answers  


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

2 Answers   Infosys,


Linking across directories?

2 Answers  


What is daemon?

0 Answers  


What are two different models of ipc differentiate both?

0 Answers  


Categories