C++ tutorial - 26 Populating an array

Hello Everyone could anyone clarify this for me:

What does return i do in the first function?

Why doesn't the return i prevent the program from proceeding to the next function "spit"' and its definition´╗┐