Parenthesis are never needed in prefix or postfix
expressions. Why?
Answer Posted / arnoldindia
Evaluation of postfix or prefix notations are done with the
help of stacks. So there is no need for brackets.
In other words, infix notation is human-readable format,
which need brackets based on BODMAS rule to understand the
order of execution. The postfix or prefix are
machine-readable format. The conversion and evaluation of
postfix and prefix are applications of stack model.
| Is This Answer Correct ? | 47 Yes | 7 No |
Post New Answer View All Answers
What is a weighted graph?
Is selection sort greedy?
What is array and its types?
Devise a program to sort an array using bubble sort.
Why set will not allow duplicates?
What is data and information explain with example?
Does arraylist maintain insertion order?
Explain the term tail recursion?
What stack means?
Why is hashmap faster than arraylist?
How can someone display singly linked list from first to last?
What are the disadvantages of circular list?
How does quick sort work?
What is the use of sorting the data?
Can we change load factor of hashmap?