问答题

简答题

以下函数为链队列的入队操作,X为要人队的结点的数据域的值,front,rear分别是链队列的队头、队尾指针。

【参考答案】

(1)malloc(sizeof(structnode))
(2)rear->next=p
(3)p