3. Write the appropriate function definition for each of the following situations:a) Write a function that separately sums the even indexed elements and oldindexed elements of an array of doubles. Each element of the arraycontributes to one of the two sums, depending on whether the index of theelement is even or odd. Your function definition must have a heading likethis:void sum(double b[ ]){ int n;double *sum_even;double *sum_odd;::}
Extracted text: 3. Write the appropriate function definition for each of the following situations: a) Write a function that separately sums the even indexed elements and old indexed elements of an array of doubles. Each element of the array contributes to one of the two sums, depending on whether the index of the element is even or odd. Your function definition must have a heading like this: void sum(double b[ ]) { int n; double *sum_even; double *sum_odd; }
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here