Hi
please can anyone run this code for me in Linux .. i want to know what's the output
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
int main(){
for (i = 0; i < 3; i++)
{
if (fork() != 0)
{
printf("ONE");
if (fork() == 0) { printf("TWO"); }
else { printf("THREE");
exit(0); }
} else printf("FOUR");
}
}
thank you