以下内容有些语法看不懂,关于intTree函数里为什么用2阶指针?

&(*T)->firstchild 这个&(*T) 也看不懂,求解释,这个是2叉树的相关函数,只是部分代码而已

typedef struct CSNode
{
int data;
struct CSNode Pfyrstchild,*nextsibling;
}CSNode,*CSTree;

int intTree(CSTree *T)
{
*T=NULL;
return 1;
}

void DestroyTree(CSTree *T)
{
if(*T)
{
if((*T)->firstchild)
DestroyTree(&(*T)->firstchild);
if((*T)->nextsibling)
DestroyTree(&(*T)->nextsibling)
free(*T);

*T=NULL;
}
}

呼如林
浏览 158回答 2
2回答

温温酱

指针的地址呗 二级指针要这么看 &(*T)->firstchild ---》&((*T)->firstchild)

达令说

你把*T拿成一个指针对象来看就行了
打开App,查看更多内容
随时随地看视频慕课网APP