+ 1

what does the operator ^ ???

11th May 2018, 2:57 PM
King Sam
King Sam - avatar
4 Réponses
+ 4
The bitwise exclusive OR operator (^) compares each bit of the first operand with the corresponding bit of the second operand. If one bit is 0 and the other is 1, the corresponding result bit is set to 1. Otherwise, zero. Both operands of the bitwise exclusive OR operator must be of an integer type. To operands the usual arithmetic transformations
11th May 2018, 3:04 PM
Nirkasder
Nirkasder - avatar
0
Xpl0it Nope, not in C/C++.
11th May 2018, 3:09 PM
Vlad Serbu
Vlad Serbu - avatar
0
Yeah I saw that after I posted. Nirkasder is on point.
11th May 2018, 3:15 PM
Xpl0it
Xpl0it - avatar
- 4
2^3 = 2*2*2 (exponents)
11th May 2018, 3:04 PM
Xpl0it
Xpl0it - avatar