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
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) ;
coutStep by Step Solution
There are 3 Steps involved in it
Solution CODE include using namespace std int sumint ... View full answer
Get step-by-step solutions from verified subject matter experts
