1.

What will be result if the given stack is popped?(a) pat(b) tap(c) atp(d) aptThis interesting question is from Reverse a Word using Stack in chapter Application of Stacks of Data Structures & Algorithms IThe question was asked in my homework.

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.



Discussion

No Comment Found

Related InterviewSolutions