欢迎使用题易搜网站

题易搜

在线题库

[单选]      以下函数为链队列的入队操作,x为要入队的结点的数据域的值,front、rear分别链队列的队头、队尾指针struct node{  ElemType data;struct node *next;};struct node *front,*rear;      voidInQueue(ElemTypex)        {            structnode*p;            p=(structnode*)malloc __(1)__;                   p->data=x;                            p->next=NULL;                               __(2)__;                                    rear=__(3)__;                                       }

发布时间:2024-03-05 0次
选项3答案 1选择...p(sizeof (struct node)rear->next=p 选项2答案 2选择...p(sizeof (struct node)rear->next=p 选项1答案 3选择...p(sizeof (struct node)rear->next=p
您需要登录才可以下载或查看,没有账号?会员注册