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
In what scenario does the Logical file and Physical file being used?
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
how to use C++?
what is template and type convertion
What is the use of stl?
How does an stl file work?
What are the symptoms of stl?
Why should a c++ programmer be interested in stl?
How is stl different from c++ standard library?
Is stl open source?
Name the different types of stl containers.
Is string part of stl?
How stl is different from the c++ standard library?
What two types of containers does the stl provide?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.