Write a recursive function that returns the minimum of an array of integers.
Prototype: int min(int tab[], int tab_size)
Write a main function to test your program.


Difficulty level
This exercise is mostly suitable for students
int min(int tab[], int tab_size)
{
	if (tab_size == 0)
		return tab[0];
	if(tab[tab_size-1] < min3(tab, tab_size -1))
		return tab[tab_size-1];
	else
		return (min(tab , tab_size -1));
}

Back to the list of exercises
Looking for a more challenging exercise, try this one !!
Closest value to the average