c语言中自定义函数函数名前为什么要加*,求解!
typedef struct{
char name[10];
char num[8];
int age;
char sex[2];
char body[5];
}student;
typedef struct node_link
{
student info;
struct node_link *next;
}node;
node *insert(node *head,student x,int position)
{
node *p,*q;
q=find(head,position);
if(!q && position!=0)
printf("无法查找到%d的节点,无法插入%d\n",position,x);
else
{
p=(node*)malloc(sizeof(node));
p->info=x;
if(position==0)
{
p->next=head;
head=p;
}
else
{
p->next=q->next;
q->next=p;
}
return head;
}
}比如这里定义的*insert()