出典:Wikipedia
出典:『Wikipedia』 (2011/06/25 18:02 UTC 版)
In computer programming, the XOR swap is an algorithm that uses the XOR bitwise operation to swap values of distinct variables having the same data type without using a temporary variable. "Distinct" means that the variables are stored at different memory addresses; the actual values of the variables do not have to be different.