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 can u do connectivity in c++ language? plz send me connectivity code in c++ ?
What do stl stand for?
What are the different types of stl containers?
Why should a c++ programmer be interested in stl?
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 stl in oop?
What is a standard template library (stl)?
Is stl open source?
What is a stl vector?
What are the components of stl?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
What is the stl, standard template library?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Is string part of stl?
Explain stl.