0 0 votes closed with the note: duplicate of : https://gateoverflow.in/30572/programming int x = 0, i; for (i = 0; i < 10, i++) if (i%2 && x++) x += 2; value of x after execution ? Programming in C + – sumit goyal 1 1.1k views comment Share Follow Print See all 7 Comments 7 7 Comments reply akankshadewangan24 commented Jun 30, 2017 reply Follow flag https://gateoverflow.in/62411/undefined-behaviour-in-c refer it first i think 0 0 replyShare sumit goyal 1 commented Jun 30, 2017 reply Follow flag referred :P my question is nowhere related to it :P 0 0 replyShare sarbesh commented Jun 30, 2017 reply Follow flag Answer 24 0 0 replyShare awaneesh jaiswal commented Jul 1, 2017 reply Follow flag Answer will be 13 we need to understand first logical op den it will be easy for u 0 0 replyShare abhishek tiwary commented Jul 1, 2017 reply Follow flag 17 should be the answer when i=even increment x=x++ when i=odd increment x=x+2 0 0 replyShare sumit goyal 1 commented Jul 1, 2017 reply Follow flag ans. will be 13 bro 0 0 replyShare priti deshpande commented Jul 1, 2017 reply Follow flag ans : x=18 0 0 replyShare Please log in or register to add a comment.