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
Is a hash table a map?
How to create your own data structure in java?
Which collection is fail safe?
Does treemap allow null key?
What do you mean by disjoint set adt?
What is a cycle or a circuit?
Why it is important to have aligned addresses? What is the exception generated when there is a misaligned address?
Define articulation point?
List the two important key points of depth first search?
What are the different types of data structures explain briefly?
Suppose in an integer array, there is 1 to 100 number, out of one is duplicate, how to find?
How to pass in data structure exam?
How to reverse singly link list?
What is the capacity of arraylist?
Write a program for reversing the Single Linked List?