![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
链表别名为指针*p malloc 前面的类型可填 struct One_Node*或p为啥能填p*?
typedefstructOne_Node{intnum;structOne_Node*next;}*node;//别名为nodenodecreathead()//创建表...
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*是什么鬼? 展开
{
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*是什么鬼? 展开
2024-02-03
展开全部
和node等效,node*当然是二级指针
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询