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 i-node numbers?

0 Answers  


Tell me set-user-id is related to (in unix)?

0 Answers  


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

0 Answers  


What is daemon?

0 Answers  


What are the system calls used for process management?

3 Answers  


Explain linking across directories?

0 Answers  


What are the various schemes available?

0 Answers  


What is semaphone?

5 Answers   HCL,


write About fork()?

2 Answers  


What are various IDs associated with a process?

3 Answers  


What are the various schemes available in ipc?

0 Answers  


What is the full form of ipc?

0 Answers  


Categories