Solved

Assume That X, Y, and Temp Are Integer Variables

Question 15

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents