java-based - supplement

1.8 * 2 calculated fastest running

8<<1

 

2.int a = 1; int b = 3; ab value of the exchange

int c = a;
a= b;
b =c;
a = a + b; //1 + 3 = 4
b = a - b;  //4 - 3 = 1
a = a - b;  //4 - 1 = 3
A ^ B = A; //. 1. 11 = 10 = 2 ^ 
B ^ A = B; // ^ 10 =. 11. 1. 1 = 
A B = A ^; ^ 10. 1 // = =. 11. 3 
// is the use of the a ^ b ^ b = a XOR equal to twice their

Guess you like

Origin www.cnblogs.com/clamp7724/p/11568848.html