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 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 ?