CJCoding With Joseph
← Back to Question List
C Code Walkthrough #39

Bitwise AND, OR, and XOR

mediumOperators

📄 Code

Read carefully — what does this print?
1#include <stdio.h>
2int main() {
3 int a = 6, b = 3;
4 printf("%d %d %d", a & b, a | b, a ^ b);
5 return 0;
6}

🎯 Your Answer