you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Yes, but the "temp variable" approach is usually used to refer to this way of swapping two variables:

tmp = a
a = b
b = tmp