What is the difference between double ** and double (*) [2].
If I understand well, double ** is a pointer to a double pointer, so it can be a 2D array of any size, whereas double (*) [2] is a pointer to a double [2] array.
So, if this is correct, how can you successfully pass the function.
For example, in:
void pcmTocomplex(short *data, double *outm[2])
if I pass double (*) [2] as a parameter, I have the following warning:
warning: passing argument 2 of 'pcmTocomplex' from incompatible pointer type note: expected 'double **' but argument is of type 'double (*)[2]'
What is the correct way to pass a double function (*) [2] to a function?
EDIT: Call Code
fftw_complex *in; in = (fftw_complex *) fftw_malloc(sizeof(fftw_complex) * 1024); pcmTocomplex(data, in);
Lowip source share