Search:

Type: Posts; User: zone159

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,151

    Understanding recursion by parts difficulty

    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);
    }
  2. Replies
    2
    Views
    2,745

    Reading in file of unknown length

    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...
Results 1 to 2 of 2