Help with pulling integer sizes within a function

I'm struggling with this lab assignment and I hope someone could give me some tips. I'm trying to find the MAX and MIN integer sizes that are entered in by the users and cannot figure out a good way to go about doing this. I know that we need to sort [i] and [j] in my function to figure out which is the highest and lowest score correct? I've just been stuck on this for a long time and would greatly appreciate any help I can get.

If you want to print the values of min, total and average score in main, then you might want to make your stat function a void.

Since you are allowed to use the sort function, it makes this even easier to determine smallest and largest. Sort the array by calling sort and putting in your array. To determine min, print array[0], for largest print array[array_size-1]