*EDIT* INTERPRET! lol....sorry!
Write a recursive function array_sum(int *array, int size, int index) that computes the sum of all the elements of the array starting with position "index".
Okay thats not too bad..but then he said this
for example, if an array A holds the values 5,4,3,2,1 then the call array_sum(A,5,2) will return the value 6=3+2+1 for it will sum up the values starting at position 2, that is 3 and 2 and 1.
This is what most confused me...
any tips on what the function will look like?
he said that the array needs to be filled with random numbers..i know that one at least...
void fillArray(int a[], int size)
{
for (int i=0; i<size; i++)
a[i]=rand()%10;
// heres my lil random number generator woot woot!
}