单项选择题

【EX-3-1-2】对一个初始为空的栈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