Pointers & Memory

Answer & solution
Official answer: D
Our answer: D under the intended C execution assumptions
1. Method and setup. The address operator makes pi point to the existing integer object i. scanf requires precisely such a destination pointer for %d, so this is equivalent to passing &i. printf subsequently evaluates the integer expression i+5; it does not use the pointer’s numeric address.
2. Work through the result and its assumptions. pi is a valid pointer to i, so a successful scanf conversion stores the entered integer in i and printf displays i+5, D. Assume representable input and no signed overflow; the source also uses legacy implicit-int main syntax rather than modern int main(void). These routine source conventions matter for literal compilation.