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

Answer Posted / guest

The output is

Hello World!Hello World!

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is fork()?

593


Explain what are the system calls used for process management?

510


Explain about daemon?

562


What is ln(linking)?

578


Explain a zombie?

617






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

548


What is the full form of ipc?

578


Please explain fork() system call?

553


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

582


What is i-node numbers?

591


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

566


What is ipc in unix?

555


What is unix ipc?

549


What is daemon?

526


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

571