0
How to switch two int with out third int
a=20 b=30 run a=30 b=20
5 odpowiedzi
+ 8
a = a + b;
b = a - b;
a = a - b;
+ 4
a = (b = b ^ (a = a ^ b)) ^ a;
+ 2
Sorry, I fixed that. Here is a simpler version:
a = a ^ b;
b = a ^ b;
a = a ^ b;
0
thanks so much 😍😍😍😍
0
sorry Tamas barta your program is wrong 😶😶😶