Tag: XOR in C

27
Mar
2017

XOR in C

Here is the example: #include<stdio.h> int xor(int a, int b); int main(void) { printf(“%d\n”,xor(0,0)); printf(“%d\n”,xor(0,1)); printf(“%d\n”,xor(1,0)); printf(“%d\n”,xor(1,1));…