[Solved] How can I understand the while, do…while and increment operators in following program? [closed]


1st conditions

while(i++>5);

here i =1, it fails but increments it to 2.

2nd condition

while(i++>4);

again fails but increments i to 3

3rd conditions

while(i++>3);

again fails but increments i to 4

So, you end up with a 4

solved How can I understand the while, do…while and increment operators in following program? [closed]