Vidyalelo
C Programming · Q285

C Fundamentals

Programming · C Programming · question 285

Q285

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

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

Answer: Option A

Solution

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