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

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

716


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

752


How to get or set an environment variable from a program?

716


Explain linking across directories?

695


What is i-node numbers?

800






Explain the initial process sequence while the system boots up?

701


Explain how do you execute one program from within another?

705


Explain the system calls used for process management?

705


Explain a zombie?

805


What are the various schemes available in ipc?

699


Which ipc is the fastest in unix?

735


What is ln(linking)?

759


What is daemon?

721


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

752


What is fork()?

781