Considere que em uma pilha foram aplicados os seguintes comandos:
PUSH (10)
PUSH (5)
PUSH (3)
PUSH (40)
POP ( )
PUSH (11)
PUSH (4)
PUSH (7)
POP ( )...
Considere que em uma pilha foram aplicados os seguintes comandos: PUSH (10) PUSH (5) PUSH (3) PUSH (40) POP ( ) PUSH (11) PUSH (4) PUSH (7) POP ( ) POP ( ) Após a execução dos comandos, o valor no topo da pilha é:
Compartilhar