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

You might also like to view...

A(n) ________ is 8 bits

A) algorithm B) hertz C) byte D) nancosecond

Computer Science & Information Technology

CRCs are typically used in systems where data can be retransmitted if errors are detected.

a. True b. False

Computer Science & Information Technology