- You omitted the
typedefthat you need to declare your struct aliass. - The struct’s member is
brather thana. - You failed to return anything from your functions. These should be void functions.
- You need parens around
ssinfunc1. - The parameterless
maininCisint main(void).
#include <stdio.h>
typedef struct s_{
int b;
}s;
void func1(s** ss){
(*ss)->b = 10;
}
void func(s* t){
func1(&t);
}
int main(void)
{
s a;
func(&a);
printf("\n a.b : %d \n", a.b);
return 0;
}
1
solved error: expected ‘)’ before ‘*’ token