Q. What is the output?
Code:
int a = 5;
int b = ++a + a++;
printf("%d", b);
β
Correct Answer: (B)
12
Explanation: ++a = 6, a++ uses 6 and becomes 7 => 6+6 = 12