0 votes 0 votes a=4 and b=3 printf("%d",a+++b); output.?? My doubt is that we will read from left as a++ or as ++b. Programming in C programming-in-c output + – Ravi_1511 asked Jan 23, 2017 edited Jun 16, 2022 by Arjun Ravi_1511 985 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes postfix has higher priority than prefix operator, so it will read a++, and output will be 7. Lucky sunda answered Jan 23, 2017 selected Jan 23, 2017 by Ravi_1511 Lucky sunda comment Share Follow See 1 comment See all 1 1 comment reply Ravi_1511 commented Jan 23, 2017 reply Follow Share ok.. 0 votes 0 votes Please log in or register to add a comment.
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 abhi_rana answered Jan 23, 2017 abhi_rana comment Share Follow See all 0 reply Please log in or register to add a comment.