Given is an array of three numeric values and I\'d like to know the middle value of the three.
The question is, what is the fastest way of finding the midd
if(array[aIndex] > array[bIndex]) { if(array[bIndex] > array[cIndex]) return bIndex; if(array[aIndex] > array[cIndex]) return cIndex; return aIndex; } else { if(array[bIndex] < array[cIndex]) return bIndex; if(array[aIndex] < array[cIndex]) return cIndex; return aIndex; }