Given an Array
arr[] ={1,2,3,4,5};
WAP to find the sum of all the element of an array using recursion.
If possible use tail recursion.
Expected Output:
15
Published By : Suraj Ghimire
Given an Array
arr[] ={1,2,3,4,5};
WAP to find the sum of all the element of an array using recursion.
If possible use tail recursion.
Expected Output:
15