There are 2 different programs, they are small for example:
int main()
{
printf ("print hello");
fork();
}
int main()
{
printf ("print hello\n");
fork();
}
output 1 is: `print helloprint hello
output 2 is:print hello
The question is, why does the one with the \n
only print once, and the first one prints it twice?