Vidyalelo
C Programming · Q157

C Fundamentals

Programming · C Programming · question 157

Q157

What will be the output of the following C code? #include int main() int x = 2, y = 2; int z = x ^ y & 1; printf("%d ", z);

A.
1
B.
2
Answer
C.
0
D.
1 or 2

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board