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
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.
What is a standard template library (stl)? What are the various types of stl containers?
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
how to making game in c++ ?
What is a list in c++ stl?
What is a standard template library (stl)?
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
What is stl stack?
What is a stl vector?
What is stl in oop?
What is the use of stl?
Is stl part of c++ standard?
Is stl open source?
In what scenario does the Logical file and Physical file being used?