Parenthesis are never needed in prefix or postfix
expressions. Why?
Answer Posted / mithilesh kumar
Parenthesis are used to define the sequence or priority of
execution of operations which is useful in infix notation.
Whereas we have already taken
the consideration of order of execution of operands during
the time of conversion to
prefix or postfix form.These orders are maintained with
the help of Stack
i.e. Last in First out. So we donot need parenthesis in
prefix and postfix notions.
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
Advanced problems related to Data Structures were asked
List out the basic operations that can be performed on a stack?
Draw the B-tree of order 3 created by inserting the following data arriving in sequence – 92 24 6 7 11 8 22 4 5 16 19 20 78
How many types of data structures are there?
What are arrays give example?
Which sort is best for linked list?
State the merits of linear representation of binary trees?
What is the need for priority queue?
Briefly explain recursive algorithm 50 how do you search for a target key in a linked list?
Does arraylist allow null values?
List the data structures which are used in hierarchical data model.
Which is the parent class of abstractqueue class?
Why do we use data structures?
What do you mean by union-by-weight?
How many types of priority queue are there?