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 / prasanna
It will print solaris first and then sun... A sequence of
solarissun if there is a closing brace at the end..!!
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
When did c++ add stl?
What is a stl vector?
What is the stl, standard template library?
How is stl different from c++ standard library?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
Who wrote stl?
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++ ?
Name the different types of stl containers.
How do you convert stl to steps?
What is a list in c++ stl?
What are the different types of stl containers?
how to making game in c++ ?
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.