+1 vote
in Data Structures & Algorithms I by (110k points)
What will be result if the given stack is popped?

(a) pat

(b) tap

(c) atp

(d) apt

This interesting question is from Reverse a Word using Stack in chapter Application of Stacks of Data Structures & Algorithms I

The question was asked in my homework.

1 Answer

+1 vote
by (444k points)
selected by
 
Best answer
The correct choice is (b) tap

Easy explanation - The word ‘pat’ is pushed on to the stack. When the characters of the stack are popped one by one, the word ‘tap’ is obtained.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...