Correct option is D
1. The pointer y points to x + 4, which is x[4] (value 10).
2. In each iteration, the expression (*y - a) - *(y - a) is evaluated.
· a = 0: b = b + (10 - 0) - 10 = 0
· a = 1: b = b + (10 - 1) - 8 = 1
· This results in b = 10 after the loop.
Information Booster:
Pointers: Useful for accessing and manipulating elements of an array efficiently.