Question: Complete the function main.cpp 6 /Write the function called locateSmallest in the given interval such that 7 I output int: index of the smallest value

Complete the function
main.cpp 6 /Write the function called locateSmallest in the given interval such that 7 I output int: index of the smallest value in the array 8 input: an array of int, the starting index of search, the ending point of searchspace 9 10 function: find the location (i.e index) of the smallest value of array in the given interval 12 int locateSmallest(int "array, int start, int end)t 13 14 15 16- 17 18 19 20 21 int n 0; int value = 0; int location = 0; for (int n- start; n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
