I'm pretty new to C syntax, but here's my problem:
I want to create a pointer which stores multiple float arrays.
From what I know, here's the approach (?):
- I have to create some sort of pointer to access these arrays from other functions.
- Dynamically allocate it some memory (for the arrays) with
malloc
. - I have to point it to each of the float arrays I am creating.
int size = 100;
float *template[66]; //for 66 float arrays
malloc...
memset(&(template[i]), 0, size*sizeof(float));
Need some guidance on the code sequence to make this work!