/* intArray.c -- File with some library functions */ void printIntArray(int a[], int n) /* n is the number of elements in the array a. * These values are printed out, five per line. */ { int i; for (i=0; i0;rh--){ /*Find position of largest element in range 0..rh*/ where = 0; for (lcv=1;lcv<=rh;lcv++) if (a[lcv]>a[where]) where = lcv; temp = a[where]; a[where] = a[rh]; a[rh] = temp; } }