Solved

Assume That X, Y, and Temp Are Integer Variables

Question 93

Multiple Choice

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

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions