The function is defined as:
int strip(double *signalstnV){
.
.
return 0;
}
And the main function is called:
main{
.
.
double signalstnV[iteration][2*range+1][3];
.
.
check = strip(signalstnV);
.
}
I wanted to use an array in the next function in main after it was changed in the strip function. But during compilation I get an error message like
sim.C: In the function 'int main (int, char **):
sim.C: 54: 26: error: cannot convert 'double () [151] [3] to' double for argument '1 to' int strip (double *)
check = strip (signalstnV);
I can’t figure it out. Please help. My main goal is to create an array from the strip function and pass it to other functions later in the code.
Also, when I used this array in another function
threshold(double * signalstnV)
and using the for loop to extract some specific values, it gives an error like:
invalid types ‘double[int]’ for array subscript
if (signalstnV[k][j][3] < -0.015){
..}