写出下列程序执行后的结果 SeqStack S; InitStack(S); Push(S,3); Push(S,4); Push(S,5); int x=Pop(S)+2*Pop(S); Push(S,x); int i,a[4]={5,8,12,15}; for (i=0;i<4;i++) Push(S,a[i]); while(!StackEmpty(S)) Printf(“%d “,Pop(S)); 执行后的输出结果为:__________________。 A.15 12 8 5 13 3 B.3 5 8 12 13 15 C.15 13 12 8 5 3 D.15 12 13 3 8 5
|