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

Answers

Answer:
Hello World!Hello World!
Explanation:
The fork creates a child that is a duplicate of the parent process. The child begins from the fork().All the statements after the call to fork() will be executed twice.(once by the parent process and other by child). The statement before fork() is executed only by the parent process.   Your Comment






Search
Can you Answer!!
  • Q What is raid-5 volume?
  • Q LibQUAL is developed by..........................
  • Q What are the options available in transfer rule and when abap code is recquired during the transfer rule what important variables you can use?
  • Q What is IL / CIL / MSIL?
  • Q How do i trigger a workflow with an e-mail?
  • Q If our mouse is erratic. How can we fix it?
  • Q What is linked datastore? Explain with an example
  • Q What is difference between Load() and LoadQuery() methods ?
  • Q Name of the father of subhas chandra bose
  • Q Explain the steps for bug cycle?
  • Q When a table is dropped all the alias get dropped automatically. State whether true or false