Q. What will be output for the following code?
Code:
#include <stdio.h>
int main()
{
int a = 1, b = 2;
int c = a ^ b & 1;
printf(""%d
"", c);
}
β
Correct Answer: (B)
1