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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the process id for kernel process?

572


Explain linking across directories?

532


What are the various schemes available in ipc?

547


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

580


Explain about daemon?

557






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

567


Max relax-able permission value with out giving write permission to others?

562


Explain a zombie?

614


Which ipc is the fastest in unix?

540


What is the very first process created by kernel?

585


What are the various schemes available?

538


What is i-node numbers?

590


What are two different models of ipc differentiate both?

569


Explain the initial process sequence while the system boots up?

542


What is the full form of ipc?

575