What is the output of the following code? #include <stdio.h> #include…
What is the output of the following code?
#include <stdio.h>
#include <unistd.h>
int main()
{
if (fork() || fork())
fork();
printf("1 ");
return 0;
}
- A.
01111
- B.
01010
- C.
11110
- D.
None of these
Attempted by 145 students.
Sign up free to check your answer
Sign up freeLoading lesson…