Apply fork() semantics: the child process starts with a copy of the parent's address space. Let the value of a just before fork be $a_0$. The parent executes the else branch and prints $u = a_0 - 5$ and address $v = \&a$. The child executes the if branch and prints $x = a_0 + 5$ and address $y = \&a$. Since $x = a_0 + 5$ and $u = a_0 - 5$, we get $x = u + 10$. Also, because fork copies the parent's virtual-address layout, the logical address of a is the same in both processes, so $v = y$.
The child adds 5 while the parent subtracts 5 from the same initial copied value. Thus child value $x$ is exactly 10 more than parent value $u$: $x = u + 10$. Since fork preserves the virtual-address layout, the printed logical addresses are equal: $v = y$. Therefore option C is correct.