#include int main(void){ int x = 6; int y = 5; //logical: 5&&6; as long as there isn't a zero this will return true (1) int bitwise = 5&6; // 0101 & 0110 = 0100 int xor = 5^6; // 0101 ^ 0110 = 0011 printf("Logical AND: %d\n", x&&y); printf("Bitwise AND: %d\n", bitwise); printf("XOR: %d\n", xor); return 0; }