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 a zombie?

10 Answers  


how to create tree of processes. one parent and 3 childs.

1 Answers   HCL,


What is unix ipc?

0 Answers  


set-user-id is related to (in unix)

1 Answers  


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

0 Answers  






What is ln(linking)?

0 Answers  


What is the condition required for dead lock in unix system?

0 Answers  


What are the system calls used for process management?

3 Answers  


How to know whether the message queue is empty or not.

1 Answers   Fibcom, HCL,


Explain fork() system call?

12 Answers   ASAS, IBM,


Explain what is the process id for kernel process?

0 Answers  


About ln(linking)

1 Answers   Infosys,


Categories