+ 1

Recursion

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

15th Jan 2020, 4:54 PM
Alon Daniel
Alon Daniel - avatar
4 Respuestas
0
A had a mistake the function has to return 1
15th Jan 2020, 4:55 PM
Alon Daniel
Alon Daniel - avatar
0
Code it using a loop (link working code here) and I'll show you the recursive equivalent.
15th Jan 2020, 9:13 PM
John Wells
John Wells - avatar
0
How do I link working code?
16th Jan 2020, 6:34 AM
Alon Daniel
Alon Daniel - avatar
0
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.
16th Jan 2020, 1:53 PM
John Wells
John Wells - avatar