单项选择题对一个初始为空的栈s执行操作Push(s,5),Push(s,2),Push(s,4),Pop(s,x),getTop(s,x)后,x的值应是______。

A.5
B.2
C.4
D.0


延伸阅读