Last occurrence? smallest item?

i don't understand several functions following do..
these are examples of my project

1
2
3
string people[5] = { "samwell", "jon", "margaery", "daenerys", "tyrion" };

int locateMinimum( const string array[ ],int n );


the explanation says the
 
locateMinimum(people,5)  //returns 3 corresponding to the index of "daenerys".  


i don't understand what it's meant by "smallest item" it doesn't seem like the size or length
I believe it's the lexicographical order of the array, i.e. the string which would be first if they were in alphabetical order.
Topic archived. No new replies allowed.