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
How do I use quick sort?
What is the difference between one and two dimensional?
What's difference between stack and queue?
What are the different types of linked list?
What is dynamic data structure?
What is adt in data structure with example?
Can arraylist have duplicates?
How do you insert a new item in a binary search tree?
Can we add heterogeneous elements into treemap?
What do you mean by primary clustering?
What is bubble sort and quick sort?
Can hashmap have duplicate keys?
Why are b trees used?
How treemap orders the elements if the key is a string?
Why use a tuple instead of a list?