Recursion | Sololearn: Learn to code for FREE!



How to write a function that gets two arguments: array, size of the array. The function has to return the index of the min value in the array by recursion. In C. Example: Array:{1,-1,3,5,9} Size:5 The function returns: -1


1/15/2020 4:54:58 PM

Alon Daniel

4 Answers

New Answer


A had a mistake the function has to return 1


Code it using a loop (link working code here) and I'll show you the recursive equivalent.


How do I link working code?


Use plus in circle icon to insert link, select my codes, pick the one you want, and hit done or share in the code, copy to the clipboard, and paste in reply.