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


Please Help Members By Posting Answers For Below Questions

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.

1965


When did c++ add stl?

719


What is a stl vector?

618


What is the stl, standard template library?

582


How is stl different from c++ standard library?

723






draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

2844


Who wrote stl?

665


In what scenario does the Logical file and Physical file being used?

2310


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

1875


Name the different types of stl containers.

681


How do you convert stl to steps?

618


What is a list in c++ stl?

684


What are the different types of stl containers?

638


how to making game in c++ ?

2170


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.

1365