Vidyalelo
C Programming · Q235

C Fundamentals

Programming · C Programming · question 235

Q235

What will be the output of the following C code? #include void main() int a = 3; int b = ++a + a++ + --a; printf("Value of b is %d", b);

A.
Value of x is 12
B.
Value of x is 13
C.
Value of x is 10
D.
Undefined behaviour
Answer

Answer: Option D

Solution

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