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 ln(linking)?

0 Answers  


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

0 Answers  


write About fork()?

2 Answers  


In Unix inter process communication take place using?

2 Answers  


What are the system calls used for process management?

3 Answers  






Explain the advantage of executing a process in background?

0 Answers  


Explain what are the system calls used for process management?

0 Answers  


Max relaxable permisssion value with out giving write permission to others?

2 Answers   IBM,


What are the various schemes available?

0 Answers  


Explain linking across directories?

0 Answers  


What is fork()?

0 Answers  


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

0 Answers  


Categories