Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What is the result of the following operation?
Top (Push (S, X))

What is the result of the following operation?
Top (Push (S, X))
a) X
b) X+S
c) S
d) XS

Answer: a
Explanation: The function Push(S,X) pushes the value X in the stack S. Top() function gives the value which entered last. X entered into stack S at last.

Join The Discussion