Arrays
October 16, 2023
GATE 2003
October 16, 2023
Arrays
October 16, 2023
GATE 2003
October 16, 2023

GATE 2002

Question 44

To evaluate an expression without any embedded function calls

A
One stack is enough
B
Two stacks are needed
C
As many stacks as the height of the expression tree are needed
D
A Turning machine is needed in the general case
Question 44 Explanation: 
To evaluate an expression or converting prefix to postfix, postfix to prefix only one stack is enough.
Correct Answer: A
Question 44 Explanation: 
To evaluate an expression or converting prefix to postfix, postfix to prefix only one stack is enough.

Leave a Reply

Your email address will not be published. Required fields are marked *