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);
}
Type: Posts; User: zone159
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);
}
Hello I am trying to read in a file using fgets. I purposely malloc
a char pointer that will not be able to fit the entire line of the file and
will be able to increment it if needed using...