Tot*_*tie 0 c syntax struct pointers
我无法访问结构的成员
代码如下:
int main()
{
typedef struct tempA
{
int a;
}tempa;
typedef struct tempB
{
tempa **tA;
}tempb;
tempb.(*tA)->a =5;
printf("\n Value of a : %d",tempb.(*tA)->a);
}
Run Code Online (Sandbox Code Playgroud)
我试图使用它来访问它, tempb.(*tA)->a;但我收到语法错误:
Run Code Online (Sandbox Code Playgroud)error: expected identifier before ‘(’ token
访问的正确语法是int a什么?
提前致谢