View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-07-2014 , 07:38   Re: Questions about "for" loop
Reply With Quote #13

Quote:
Originally Posted by HamletEagle View Post
Will check the condition, and will execute one time, cause you check <= 0. i starts from 0, which is <= 0, but what if you will test this yourself ? You should cache ArraySize.
No, it won't execute even once if ArraySize() returned zero, because he subtracted it by one, giving -1, and 0(i) is not less or equal to -1.

Last edited by klippy; 11-07-2014 at 07:39.
klippy is offline