int findMin(int A[], int size, int start) or int findMin(int A[20], int start, int end) /* Which is what liuyang is assuming. */ If I am able to change the types slightly, another possibility is int findMin(int A[20], int start, int & minidx) /* Which is one option in kemort's second post. */ See how giving different names for the parameters other than i or j could communicate a lot of meaning (in English at least). |
|
|
|