A.  3 is returned from the function.

 

 

B.  This function finds the smallest value in the array.

 

Explanation