The code segment below is intended to swap the values of the variables first and second using a temporary variable, temp.

temp <- first

first <- second




Which of the following can be used to replace so that the code segment works as intended?

answer choices
a. second <- first
b. second <-temp
c. temp <- first
d. temp <- second