// // Start with the maximum being the first array element // Then pick the maximum of the running maximum and each of the next // elements in turn. // max = data[0]; for ( i = 1; i < n; i++ ) { if ( data[i] > max ) max = data[i]; } // // What should the maximum be if n == 0? //