结构推理 写出下列程序段的输出结果(栈的元素类型SElemType为char)。
   void main()
   {
     Stack S;
     char x,y;
     lnitStack(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);
   }
【正确答案】输出结果:stack
【答案解析】