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 / saurabh singh
first of all it will not execute bec of 2 reasons:
1.it doesn't have a closing braces.
2.fork() function is not defined anywhere.so it will show
an error.
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
how to use C++?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
How does an stl file work?
What does stl stand for in basketball?
Can we use stl in coding interviews?
What are the components of stl?
What two types of containers does the stl provide?
What are the various types of stl containers?
Is stl part of c++ standard?
Is string part of stl?
Who wrote stl?
How is stl different from c++ standard library?
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
What is a standard template library (stl)?
What does stl mean in slang?