Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement