3 votes 3 votes Programming in C programming-in-c + – gari asked Jan 11, 2018 gari 484 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply MiNiPanda commented Jan 16, 2018 reply Follow Share Very nice question!! :) It will be 148. 1 votes 1 votes gari commented Jan 16, 2018 reply Follow Share explanation is appreciated :) 0 votes 0 votes MiNiPanda commented Jan 16, 2018 reply Follow Share Coming soon :v Will be too big.. please have patience to go through.. 1 votes 1 votes Please log in or register to add a comment.
Best answer 4 votes 4 votes I hope i could make this clear. MiNiPanda answered Jan 16, 2018 selected Jan 17, 2018 by Anu007 MiNiPanda comment Share Follow See all 4 Comments See all 4 4 Comments reply gari commented Jan 16, 2018 reply Follow Share Thanks for your effort :).. i have a doubt that... After initialization of loop we directly go in the loop body...so how i is decremented to 4(although it's a pre decrement instruction but before 1 rst iteration we haven't encountered the inc/dec statement..) please help ... 0 votes 0 votes MiNiPanda commented Jan 16, 2018 reply Follow Share Yes.. you are right that we don't do the increment/decrement operation directly after initialization. But we certainly do the condition checking after initialization right? Here the pre decrement operation is given where the condition checking is usually written. As I said the control flow should be the same i.e. for(A;B;C) the flow is A->B->body of the loop(if B is satisfied) ->C->B->.... Here C is empty. B has the pre decrement operation. So it will be executed after initialization. 2 votes 2 votes gari commented Jan 17, 2018 reply Follow Share thanks @ MiNiPanda for your effort.. it really helped:) 0 votes 0 votes MiNiPanda commented Jan 17, 2018 reply Follow Share Welcome gari :P good to hear it helped :) 1 votes 1 votes Please log in or register to add a comment.