QUOTE(aznballerlee @ 5 Nov, 2006 - 10:18 PM)

I don't know why I would need a max index .. I don't need a max .. but I do want a min variable.
I designated min as the min index already.
Hi Az
If I understand you right, you want to find the array index of the smallest value in the array.
Given an array something like this:
45,75,24,57,2,99
You need to "scan" with code and compare each value both with the last known and smallest and current index. It can be done with just two variables to manage the scan and remember the location of the last known smallest.
You need to "seed" the current_low with the first value, then proceed from position 2 (index 1) and compare with the seeded index, somthing like:
CODE
int idx = 1 ,seed = 0;
while ( idx < num_records )
{
if ( arr[idx] < arr[seed] )
seed = idx;
}