2 votes 2 votes What will be the output of the following $'C'$ code ? main () { int x = 128; printf ("\n%d", 1+x++); } $128$ $129$ $130$ $131$ Programming in C ugcnetcse-dec2014-paper2 programming-in-c + – makhdoom ghaya asked Jul 20, 2016 makhdoom ghaya 3.3k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 1 votes 1 votes Answer 129 x is post increment here . So, it will have no effect on output It will print 1+x=129 srestha answered Jul 20, 2016 selected Jul 20, 2016 by ManojK srestha comment Share Follow See 1 comment See all 1 1 comment reply cse23 commented Jul 20, 2016 reply Follow Share answer should be 129 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes sice post increment is having higher precendence than addition symbol it is executed first and we wil get 129 saipriyab answered Sep 28, 2017 saipriyab comment Share Follow See all 0 reply Please log in or register to add a comment.