Thursday, September 19, 2019

java - Why is this infinite for loop terminating after some time?

I am running this infinite for loop. Why is this for loop terminating after some time?



for(int i = 10; i > 0; i++) { }


But if I print something in this for loop then it is not terminating. Why so?

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...