Consider the following code snippet...
if (fork() == 0)
{
a = a + 5;
printf("%d, %d \n", a, &a);
}
else
{
a = a - 5;
printf ("%d, %d \n", a,& a);
}
Let u, v be the values printed by the parent process, and x, y be the values printed by the child process. Which one of the following is TRUE? [ a ? b means that the relationship between a and b cannot be determined and will depend on whether child runs first or parent runs first or some other factors]
|