Write a function sum(int a[], int size) to (recursively) compute the sum of the elements in an
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a function sum(int a[], int size) to (recursively) compute the sum of the elements in an array.
Example Run :
int arr[]={1,2,3,4} ;
int result = sum(arr,4) ;
cout
Related Book For
Statistics For Business And Economics
ISBN: 9780538481649
11th Edition
Authors: David R. Anderson, Dennis J. Sweeney, Thomas A. Williams
Posted Date: