CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Bitwise AND, OR, and XOR

C code walkthrough · Question 39
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