Skip to content
Pooja Bhatia Classes Hari Nagar
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
Pooja Bhatia Classes Hari Nagar

Author name: PythonCSIP CS IP

21. Use a stack to evaluate the following postfix expression and show the content of the stack after execution of each operation. Don’t write any code. Assume as if you are using push and pop member functions of the stack AB – CD + E * +

sa 12 cs chapter 10 / PythonCSIP CS IP

(where A = 5, B = 3, C = 5, D= 4, and E= 2)   Algo : 1) If operand is encountered, push it onto Stack [End If] 2) If operator is encountered, Pop two elements i) A -> Top element ii) B-> Next to Top element iii) Evaluate B operator A push B […]

21. Use a stack to evaluate the following postfix expression and show the content of the stack after execution of each operation. Don’t write any code. Assume as if you are using push and pop member functions of the stack AB – CD + E * + Read More »

20. Evaluate the following postfix expression using a stack and show the contents of stack after execution of each operation :

sa 12 cs chapter 10 / PythonCSIP CS IP

20, 45, +, 20, 10, -, 15, +, *

20. Evaluate the following postfix expression using a stack and show the contents of stack after execution of each operation : Read More »

Post pagination
← Previous 1 … 9 10 11 … 554 Next →
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
  • We teach following classes
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship

Copyright © 2025 Pooja Bhatia Classes Hari Nagar | Powered by Pooja Bhatia Classes Hari Nagar.