📅  最后修改于: 2022-03-11 14:48:15.444000             🧑  作者: Mango
int sum(int arr[], int start, int len)
{
// Recursion base condition
if(start >= len)
return 0;
return (arr[start] + sum(arr, start + 1, len));