Declare i inside for loop (valid in C99).