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
Define stl.
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
What is stl language?
Is stl part of c++ standard?
how to use C++?
Explain stl.
What is stl in oop?
How does an stl file work?
What do stl stand for?
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
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
What is stl stand for?
How connect plc and pc through software
What are the different types of stl containers?