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 ? | 46 Yes | 7 No |
Post New Answer View All Answers
What is bubble sort in data structure?
What is a spanning tree?does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?
How do you sort an arraylist in descending order?
What is the difference between hashset and treeset?
What is the basic of data structure?
What is the difference between an array and vector?
What is unbounded queue?
What are the advantages of bubble sort?
Can you change size of array once created?
How does hashset maintain order?
Is quicksort faster than merge sort?
What is ascending and descending order?
Can you distinguish between ArrayList and Array?
Is heap sort faster than quicksort?
Why is data structure needed?