Page 1 of 1

array functions

Posted: Fri Mar 04, 2005 12:16 pm
by dannymc1983
if i have a array of integers how would i get the index of the biggest integer?
is there any function that does this??
for example if i have an array (1,2,3,4,3,2,1) i would need some function that tells me that the location of the biggest integer is in index 3. anyone know of a way of doing this?

Posted: Fri Mar 04, 2005 12:36 pm
by John Cartwright
for sorting arrays, look at sort() and its sister functions..