2013-01-11 19 views

cevap

95

ters XOR olduğunu!

Eğer varsa:

c = a^b; 

Sen alabilirsiniz kullanılabilir diğer değere sahip geri eğer a veya b: Örneğin

a = c^b; // or b^c (order is not important) 
b = c^a; // or a^c 

eğer a = 5, b = 3 (ve dolayısıyla c = 6 bahsettiğin gibi) elde edersiniz:

b=0011 (3)   a=0101 (5) 
c=0110 (6) XOR or c=0110 (6) XOR 
----------   ---------- 
a=0101 (5)   b=0011 (3) 
+16

Dostum ... bu ROX! – Gazzini

25

XOR ters XOR olduğu .....

+7

Sonuçta bu nokta değil mi? –