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 / rojoco
Imagining that the correct headers were included and the
closing bracket for the main function is added, it'll print
sun 8 times and solaris 8 times. You won't know the order
that they're printed in, it depends on the kernel scheduler
as to which process is run first.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Is there any error below, its a code to delete all entires from a map #include
what is template and type convertion
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
How do you convert stl to steps?
What are the symptoms of stl?
How stl is different from the c++ standard library?
What do stl stand for?
Is stl part of c++ standard?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
How connect plc and pc through software
What is a stl vector?
What is the stl, standard template library?
how to use C++?
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command
Name the different types of stl containers.