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
How many pointers are necessary to implement a simple linked list?
Is data structure a data type?
Explain the difference between a list and array.
What are the parts of a linked list?
How can I learn data structures?
What is the Role of push() and pop() method?
What is difference between data type and variable?
Are the expressions arr and &arr same for an array of integers?
an array t[100] which contains numbers between 1..99. Return the duplicated value. Try both O(n) and O(n-square).
Name few classes that implement collection interface?
What is bubble sort with example?
Can you list out the areas in which data structures are applied extensively?
Is hashmap sorted?
How to find the missing element in integer array of 1 to 7?
What are the disadvantages of linked list over array?