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
Can we use stl in coding interviews?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
What do stl stand for?
What is stl stand for?
What is the use of stl?
What does stl mean in slang?
What is stl language?
What is stl in c++ with example?
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
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is the stl, standard template library?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
What is a standard template library (stl)?
What is meant by stl in c++?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher