Vidyalelo
C Programming · Q270

C Fundamentals

Programming · C Programming · question 270

Q270

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

A.
true 2
Answer
B.
false 2
C.
either true 2 or false 2
D.
true 1

Answer: Option A

Solution

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