题目内容
写出下列程序段的输出结果(栈的元素类型selem type为char)。voidmain( ){ stack s; char x,y; initstack(s);x=’c’;y=’k’;push(s,x); push(s,’a’); push(s,y);pop(s,x); push(s,’t’);push(s,x);pop(s,x); push(s,’s’);while(!stackempty(s)){ pop(s,y);printf(y); }; printf(x); }
查看答案
搜索结果不匹配?点我反馈