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;
}

  1. A.

    01111

  2. B.

    01010

  3. C.

    11110

  4. D.

    None of these

Attempted by 145 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…