3. A letter means push and an asterisk means pop in the following sequence.
Give the sequence of values returned by the pop operations when this sequence
of operations is performed on an initially empty LIFO stack.
E A S * Y * Q U E * * * S T * * * I O * N * * *
4. A letter means push and an asterisk means pop in the following sequence.
Give the contents of s[0], ..., s[4] after the execution of
Program.
L A * S T I * N * F I R * S T * * O U * T * * * * * *
No comments:
Post a Comment