What is output of the following?



What is output of the following? ..

Answer / nouff

What is output of the following?
main()
{ int z=5;
if (fork()) {
printf("\t ISZC462 ");
z=10;
}
else
printf("Net Prog");
printf(" PID =%d Z=%d \n",getpid(), z);
exit(0);
}
Is the above code leads to zombies state? If your answer is
yes explain how and re-write
the above code to get rid of these states using signal?

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Unix General Interview Questions

Is ios based on unix?

0 Answers  


How to log out in unix?

0 Answers  


Is android unix based?

0 Answers  


Is unix the first operating system?

0 Answers  


Differentiate relative path from an absolute path?

0 Answers  






What is the full form unix?

0 Answers  


Describe the responsibilities of shell in brief.

0 Answers  


What do you mean by unix?

0 Answers  


What will happens when we don't call of bind()and listen() in a normal echo server ? Q.33 (b). What are the purposes of the three file descriptors on which the syslogd daemon listens and does I/O multiplexing?

1 Answers  


Differentiate swapping and paging.

0 Answers  


What a pipe?

0 Answers  


What does tr H do in unix?

0 Answers  


Categories