When all elements have been processed ...

When all of the array elements in Listing 6 have been examined and processed in this manner, the variable named min will contain the minimum value of all the values stored in the array.

This value is returned by the function.

For the specific set of user input values shown in Figure 1, the minimum value was -100.