Vidyalelo
C Programming · Q109

C Fundamentals

Programming · C Programming · question 109

Q109

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

A.
0
B.
1
Answer
C.
Compile time error
D.
Undefined behaviour

Answer: Option B

Solution

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