Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Give an explanation for the C language question. The statement that cannot realize the exchange of the values ????of a and b is
Give an explanation for the C language question. The statement that cannot realize the exchange of the values ????of a and b is

Answer A

A.

a=t;t is assigned to a, and the value of t is stored in a

t =b, b is assigned to t, and the value in b stored in t

b=a, a is assigned to b, and the value stored in b is the value of a at this time, that is, t

< p>So the t stored in a, the b stored in t, and the t stored in b are not exchanged between a and b, but a and t.

Others can be analyzed in the same way, That's right