A code segment will be used to swap the values of the variables a and b using the temporary variable temp. Which of the following code segments correctly swaps the values of a and b? a) temp = a; a = b; b = temp; b) a = temp; temp = b; b = a; c) temp = b; b = a; a = temp; d) b = temp; temp = a; a = b;