Assume that x, y, and temp are Integer variables. Which of the following lines of code swaps the values of x and y?
(A) x = y
y = x
(B) x = temp
x = y
y = temp
(C) temp = x
x = y
y = temp
(D) x = y
temp = x
y = temp
(C) temp = x
x = y
y = temp
Computer Science & Information Technology