edited by
985 views

2 Answers

Best answer
2 votes
2 votes
postfix has higher priority than prefix operator, so it will read a++, and output will be 7.
selected by
6 votes
6 votes

It will be parsed as c = a++ + b, and a++ means post-increment(first use then increment),
 i.e. increment after taking the value of a to compute a + b == 4 + 3 = 7

Related questions