What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a = 1, b = 1, d = 1;
printf("%d, %d, %d", ++a + ++a+a++, a++ + ++b, ++d + d++ + a++);
}
#include <stdio.h>
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: Option D
Join The Discussion