Vidyalelo
C Programming · Q67

C Fundamentals

Programming · C Programming · question 67

Q67

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

A.
0
B.
1
Answer
C.
Undefined behaviour
D.
Compilation error

Answer: Option B

Solution

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