On Fri, May 20, 2022 at 05:25:56PM +0200, Daniel Lezcano wrote: > On 20/05/2022 17:02, Dan Carpenter wrote: > > This while loop exits with "i" set to -1 and so then it sets: > > Won't it exit with 'i' set to '0' ? > Wow. You made me worried there. I had to make a test case just to be sure: int i = 10; while (i--) printf("in %d\n", i); printf("out %d\n", i); Yep. Ends on on -1. regards, dan carpenter