Vidyalelo
C Programming · Q217

C Fundamentals

Programming · C Programming · question 217

Q217

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

A.
0
B.
1
C.
Compile time error
Answer
D.
2

Answer: Option C

Solution

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