I am a beginner to C. In my program i have a structure and a function. I'm trying to pass a pointer which is present in the structure as an argument in my function. But it is showing the error "Expected )" at the dot operator. This is confusing because the other arguments of my function are from the structure as well but this error is not seen in those.
I tried changing the return type of the function to all types and still nothing.
struct signal
{
bool *input;
int previousop;
int n;
}s; //my structure
void noiseremove(bool *input, int n, int count1, int count0, bool
previousop)//function i declared and defined before main function
{//my function here}
void main()
{
void noiseremove(bool *s.input , int s.n, int s.count1, int s.count0, bool
s.previousop); //this is where i call the function and facing an error at
*s.input
}
I'm not sure where i'm going wrong here or if the syntax is wrong. I expect the function to accept the parameters but it isn't.