Please consider the following code snippet.
if (fork() == 0)
{
a = a + 5;
printf(“%d, %d
“, a, &a);
}
else
{
a = a-5;
printf (“%d, %d
“, a,& a);
} AFAIK, when creating fork(), the paren
Please consider the following code snippet.
if (fork() == 0)
{
a = a + 5;
printf(“%d, %d
“, a, &a);
}
else
{
a = a-5;
printf (“%d, %d
“, a,& a);
} AFAIK, when creating fork(), the paren