02.02.2017, 11:29
Quote:
Swapping two variables without the use of 3rd one using XOR PHP код:
|
PHP код:
new a = 5, b = 10;
a = a + b - (b = a); //
// a = 10
// b = 5
Swapping two variables without the use of 3rd one using XOR PHP код:
|
new a = 5, b = 10;
a = a + b - (b = a); //
// a = 10
// b = 5