admin@onlinelearningcenter.in (+91) 7 999 01 02 03

WAP to find the sum of all the numbers in an Array Using Recursion

Suraj Ghimire
13 Posts

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
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin