1 votes 1 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 ? sumit goyal 1 asked Jun 30, 2017 • closed Jun 30, 2017 by pawan kumarln sumit goyal 1 650 views comment Share Follow See all 7 Comments See all 7 7 Comments reply akankshadewangan24 commented Jun 30, 2017 reply Follow Share https://gateoverflow.in/62411/undefined-behaviour-in-c refer it first i think 0 votes 0 votes sumit goyal 1 commented Jun 30, 2017 reply Follow Share referred :P my question is nowhere related to it :P 1 votes 1 votes sarbesh commented Jun 30, 2017 reply Follow Share Answer 24 0 votes 0 votes awaneesh jaiswal commented Jul 1, 2017 reply Follow Share Answer will be 13 we need to understand first logical op den it will be easy for u 0 votes 0 votes abhishek tiwary commented Jul 1, 2017 reply Follow Share 17 should be the answer when i=even increment x=x++ when i=odd increment x=x+2 0 votes 0 votes sumit goyal 1 commented Jul 1, 2017 reply Follow Share ans. will be 13 bro 1 votes 1 votes priti deshpande commented Jul 1, 2017 reply Follow Share ans : x=18 0 votes 0 votes Please log in or register to add a comment.