I am trying the following C code:
int main()
{
printf(\"text1\\n\");
fork();
printf(\"text2\\n\");
return 0;
}
I was expect
Problem 1 : the output as
text1
text2
text2Problem 2 : the output as
text1text2
text1text2