1 2 3 4 5 6 7 8 9 10
#include <stdio.h> int main(void) { int a = 7; // 111 int b = 2; // 010 printf("%d", a ^ b); // ^ = XOR, 111 ^ 010 = 101 = 5 return 0; }
1
5