SHARE
TWEET

Untitled

a guest Aug 13th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int minimumIndex(int integerArray[], int startingIndex, int endingIndex)
  2. {
  3.     int minIndex, currentIndex;
  4.     minIndex = startingIndex;
  5.     currentIndex = startingIndex + 1;
  6.    
  7.     while (currentIndex < endingIndex)
  8.     {
  9.         if (integerArray[currentIndex] < minIndex)
  10.         {
  11.             integerArray[currentIndex] = minIndex;
  12.         }
  13.         currentIndex++;
  14.     }
  15.     return (minIndex);
  16.    
  17. }
RAW Paste Data
Top