Guess Output
#include<stdio.h>
#include<unistd.h>
main()
{
int pid;
printf("Hello");
fork();
if(pid==0)
{
printf("Hello Child process");
}
else
{
printf("Hello Parent Process");
}
}
But your guess might be wrong.......
see the output what i am getting .
Output:
HelloHello Parent ProcessHelloHello Parent Process
can you explain why? i really confused