1.

Operations required for reversing a word or a string using stack are push() andpop().(a) True(b) FalseMy doubt is from Reverse a Word using Stack in portion Application of Stacks of Data Structures & Algorithms IThe question was posed to me in quiz.

Answer» RIGHT option is (a) True

Explanation: PUSH operation inserts a CHARACTER into the stack and pop operation POPS the top of the stack.


Discussion

No Comment Found

Related InterviewSolutions