注意:此页面搜索的是所有试题
以下函数为链栈的进栈操作,x是要进栈的结点的数据域,top为栈顶指针


struct node


{ ElemType data;


struct node *next;


};


struct node *top ;


void Push(ElemType x)


{


struct node *p;


p=(struct node*)malloc __(1)__;


p->data=x;


__(2)__;


__(3)__;


}

参考答案