any explanation of how exactly the sumL and sumR and storing the correct info in order to actually add the sum of vector X would be appreciatedCode:float vecSum(int N, float *X)
{
if (N > 1)
{
int nL = N/2, nR = N-nL;
float sumL, sumR;
sumL = vecsum(nL, X);
sumR = vecsum(nR, X+nL);
return(sumL+sumR);
}
else if (N == 1)
return(*X); /* sum 1 elt is elt */
/* else if (N == 0) */
return(0.0); /* sum of 0 elts is 0 */
}