What does function "fun" do when called with some array x and n = 0?

It finds the largest value in x and leaves x unchanged.
  • It finds the smallest value in x and leaves x unchanged.
  • It sorts x in ascending order and returns the largest value in x.
  • It sorts x in descending order and returns the largest value in x.
  • It returns x[0] or x[n-1] whichever is larger.

Do you seen any assignments to the array?

Do the comparisons keep the largest or the smallest value?