GATEverse
← GATE CSE 2005

Q72

MCQ2 marks, −0.5

Consider the following code fragment: if (fork() == 0) { a = a + 5; printf("%d, %p n", a, &a); } else { a = a - 5; printf ("%d, %p n", a,& a); } Let u,vu,v be the values printed by the parent process and x,yx,y be the values printed by the child process. Which one of the following is TRUE?

Sign in to save attempts.

Loading…