Predict the output of the following program code
main()
{
fork();
printf("Hello World!");
}
Answers were Sorted based on User's Feedback
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 |
Describe the initial process sequence while the system boots up?
Explain a zombie?
What are the process states in Unix?
What is a Daemon?
How to get or set an environment variable from a program?
How do you execute one program from within another?
How to write the program on full-duplex communication using 2 FIFOs
write About fork()?
What is Inode.
What is semaphone?
What is the full form of ipc?
What Happens when you execute a command?