Postfix Notation Evaluation Method

Which data structure would you use to evaluate an expression given in postfix notation?

پوسٹ فکس نوٹیشن میں دیے گئے اظہار کا اندازہ کرنے کے لیے آپ کون سا ڈیٹا ڈھانچہ استعمال کریں گے؟
Answer: Stack
Explanation
  • A stack is used to evaluate postfix expressions as it allows operations in a last-in, first-out (LIFO) order.
  • Operands are pushed onto the stack.
  • Operators pop operands for computation, pushing the result back.
  • This question appeared in Past Papers (1 times)
    This question appeared in Subjects (1 times)

    Install this app on your device for quick access right from your home screen.