Other / Mixed Topics

Answer & solution
Answer: A: exchange a and b, assuming no overflow (no official key was published)
Let the initial values be a0,b0. After the first statement a=a0+b0. The second computes b=(a0+b0)−b0=a0. The final statement gives a=(a0+b0)−a0=b0, completing the swap without a separate temporary. This derivation assumes the intermediate sum is representable or a defined modular arithmetic model. The snippet declares variables but does not initialize them; as a standalone program it would not define starting values. Its intended transformation concerns values supplied before this segment.