Originally posted by Shiva Mohan:
...with assertion disabled how it displays infinite times. When it comes to execute while 3<3 condn it returns false...
With assertions disabled, the expression following "assert" is not evaluated. So in this code, i1 is never incremented.
It's not that i1<3 returns false when i1 is 3. It's that i1 remains at zero.