Vidyalelo
C Programming · Q60

C Fundamentals

Programming · C Programming · question 60

Q60

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

A.
15, 4, 5
B.
9, 6, 9
C.
9, 3, 5
D.
Undefined (Compiler Dependent)
Answer

Answer: Option D

Solution

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