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
What two types of containers does the stl provide?
what is template and type convertion
What is meant by stl in c++?
Define stl.
totoo po ba ang manga aliens!
How connect plc and pc through software
write a program to convert a decimal number in to its equivalent binary number?
Who created stl?
What does stl stand for in basketball?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
What are the different types of stl containers?
When did c++ add stl?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
What are the components of stl?
In what scenario does the Logical file and Physical file being used?