Vidyalelo
C Programming · Q247

C Fundamentals

Programming · C Programming · question 247

Q247

What will be the output of the following C code? #include int main() int x = 3, i = 0; do x = x++; i++; while (i != 3); printf("%d ", x);

A.
Undefined behaviour
B.
Output will be 3
Answer
C.
Output will be 6
D.
Output will be 5

Answer: Option B

Solution

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