pls help me here.
write a function that sums up the even and odd indexed elements of an array of doubles' separately.
each elements of the array contributes to one of the two sums; depending on whether the index of the elements is even or odd. your function definition should look something like this
sum(a,n,even_in dex_sum_ptr, odd_index_sum_p tr)
double a[ ], *even_index_sum _ptr, *odd_index_sum_ ptr;
int n; /*n is the size of a[ ] * /
{
}
write a function that sums up the even and odd indexed elements of an array of doubles' separately.
each elements of the array contributes to one of the two sums; depending on whether the index of the elements is even or odd. your function definition should look something like this
sum(a,n,even_in dex_sum_ptr, odd_index_sum_p tr)
double a[ ], *even_index_sum _ptr, *odd_index_sum_ ptr;
int n; /*n is the size of a[ ] * /
{
}
Comment