Posts by Cohiba • 21 points
1 post
-
2
votes1
answer117
viewsQ: Bit-by-bit operations (XOR)
#include <stdio.h> void main(){ int a = 356, b = 3; printf("%d\n", a ^ b); /* system("pause"); } Somebody explain to me why this xor does 359? The conversion to binary gets: 101100100 -->…