Vidyalelo
C Programming · Q298

C Fundamentals

Programming · C Programming · question 298

Q298

What will be the output of the following C code? #include int main() int x = 1, y = 2; if (x && y == 1) printf("true "); else printf("false ");

A.
true
B.
false
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