在线题库
[单选] 以下函数为链栈的进栈操作,x是要进栈的结点的数据域,top为栈顶指针struct node{ ElemType data;struct node *next;};structnode*top;voidPush(ElemTypex) { structnode*p; p=(structnode*)malloc __(1)__; p->data=x; __(2)__; __(3)__; }
发布时间:2024-03-05
0次
选项2答案 1选择...p->next=toptop=psizeof (struct node) 选项1答案 2选择...p->next=toptop=psizeof (struct node) 选项3答案 3选择...p->next=toptop=psizeof (struct node)