|
|
cout << "The smallest number in the array is " << printArray(array, 25) << endl; This is invalid because your printArray function dosn't return a value.if(ar[i] > ar[max]) you are checking to see if ar[i] is less than ar[max] but you haven't put anything in the array yet. |
|