Xobin Sign In Queries

Problem Statement :

The function smallest() accepts 2 parameters - array arr[ ] and int size_of_array. Complete the function to return the smallest number in the integer array arr[ ]. Output must be in integer format.

Testcase 1

Input: arr[ ]=[1,2,3,4,5], size_of_array=5

Output: 1

Testcase 2

Input: arr[ ]=[14,12,13,8], size_of_array=4

Output: 8

Powered by