Give the output of the following program
main()
{int ret;
ret=fork();ret=fork();ret=fork();ret=fork();
if(!ret)
printf("sun");
else
printf("solaris");

Answer Posted / pdp

It depends on the return value of fork(). If it is other
than 0 (zero), then the output is solaris else sun.

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What two types of containers does the stl provide?

749


what is template and type convertion

2208


What is meant by stl in c++?

875


Define stl.

1020


totoo po ba ang manga aliens!

2528


How connect plc and pc through software

2150


write a program to convert a decimal number in to its equivalent binary number?

2266


Who created stl?

859


What does stl stand for in basketball?

833


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

1847


What are the different types of stl containers?

860


When did c++ add stl?

935


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

3087


What are the components of stl?

849


In what scenario does the Logical file and Physical file being used?

2532