410 views

1 Answer

2 votes
2 votes

It will print 1,2,3,4,5,7

It is a preincrement of i . So every time it  first increment and then assign the value and print

So, upto 5 it will print

Then it will go to ' if ' part of program 

There i value becomes 7 , breaks the loop and exit

edited by

Related questions

0 votes
0 votes
3 answers
1
0 votes
0 votes
2 answers
3
go_editor asked Jun 8, 2016
447 views
Which of the following statement(s) is(are) true?If $n$ is odd prime number then $2^{n-1} \text{ mod } n =1$If $2^{n-1} \text{ mod } n =1$ for a number $n$ then $n$ is pr...
2 votes
2 votes
1 answer
4
go_editor asked Jun 8, 2016
335 views
Write the truth table for the connective: "If A then B"