链表别名为指针*p malloc 前面的类型可填 struct One_Node*或p为啥能填p*?

typedef struct One_Node
{
int num;
struct One_Node* next;
} *node; //别名为node
node creathead()//创建表头
{
node head=(node)malloc(sizeof(node));
head->next=NULL;
return head;
}
struct One_Node*和p是等效的吗?那p*是什么鬼?

第1个回答  2024-02-03
和node等效,node*当然是二级指针
相似回答