2. Use stack data structure, to give the required steps and the content of stack(s) to evaluate the following expression Show transcribed image text 2. Use stack data structure, to give the required steps and the content of stack(s) to evaluate the following expression
Answer
STEPS–
1) Convert infix expression to post-fix expression
2) while reading the post-fix expression from left to right, pushthe element in stack if it is an operand.
3) pop the two operand from the stack, if
OR
OR