Question: a) Write the following function (non-recursive): int FindSmallest (int a[], int size); When it receives an array a of length size, the function will return
a) Write the following function (non-recursive): int FindSmallest (int a[], int size); When it receives an array a of length size, the function will return the index of the smallest element in the array. b) Rewrite the same function in question 3a recursively. c) Write a main program to read an array and test the two functions you wrote in parts 3a and 3b.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
