Search:

Type: Posts; User: guitarman

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    2,935

    But main() doesnt free it when it returns?

    But main() doesnt free it when it returns?
  2. Replies
    12
    Views
    2,935

    Thanks. It was a great help. Here's the new code:...

    Thanks. It was a great help. Here's the new code:



    #include <stdio.h>
    #include <stdlib.h>

    float *mult_matrix(int n, float *p, float *q);
    float *get_matrix(int m, int n);
    void...
  3. Replies
    12
    Views
    2,935

    So, I've tried putting a, x and b on the stack in...

    So, I've tried putting a, x and b on the stack in main() but I'm still having trouble. Please, what I'm doing wrong?


    #include <stdio.h>
    #include <stdlib.h>

    float *mult_matrix(int n, float...
  4. Replies
    12
    Views
    2,935

    So you suggest to use the functions of dynamic...

    So you suggest to use the functions of dynamic allocation of memory on function main()? On this case, malloc() and then free()?
  5. Replies
    12
    Views
    2,935

    Pointers problem

    Hi there. I'm new to the forum and this is my first time posting here. I'm a newbie at C and I'm experiencing a pointers problem. Here's the code:


    #include <stdio.h>

    float *mult_matrix(int n,...
Results 1 to 5 of 5