Hi,
So for this we should rather writefor(i= 0; i <sizeof(scores) / sizeof(int); i++)
That does not work once this is not done within the array's scope.
@OP :
just do this :
for i = 0; i < arraySize ++i{
for j = i+1; j < arraySize; j++
if array[i] > array[j]
swap the two values;
}