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

Can we use stl in coding interviews?

1263


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1841


What do stl stand for?

625


What is stl stand for?

723


What is the use of stl?

622






What does stl mean in slang?

639


What is stl language?

663


What is stl in c++ with example?

625


Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister

1644


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2076


What is the stl, standard template library?

580


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

2842


What is a standard template library (stl)?

628


What is meant by stl in c++?

642


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

1687