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 do you convert stl to steps?
What is a stl vector?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
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
Define stl.
How stl is different from the c++ standard library?
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
Can we use stl in coding interviews?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
How is stl different from c++ standard library?
What is a standard template library (stl)?
What is stl in oop?
How does an stl file work?