I have a doubt about fork process. I have a code which is
int main(int c, char **v){
fork();
fork() && fork() || fork();
printf("Hello\t");
}
According to me the output of the above code will be
24 = 16 times "Hello", because each fork creates two copy of its own so the overall becomes 2*2*2*2 which are 16 times "Hello".
But it's not correct it is giving me output as 10 times Hello. What is happening here?