Thursday, 19 September 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...