Y=x-y=(x+y)-y=x, and assign the original value of x to y.
X-=y is equivalent to x=x-y=x+y-x=y, and the initial value of y is assigned to X.
The function of the statement is to exchange the values of x and y.
Choose D.