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


Please Help Members By Posting Answers For Below Questions

How many pointers are necessary to implement a simple linked list?

674


Is data structure a data type?

499


Explain the difference between a list and array.

540


What are the parts of a linked list?

647


How can I learn data structures?

520






What is the Role of push() and pop() method?

526


What is difference between data type and variable?

464


Are the expressions arr and &arr same for an array of integers?

564


an array t[100] which contains numbers between 1..99. Return the duplicated value. Try both O(n) and O(n-square).

527


Name few classes that implement collection interface?

525


What is bubble sort with example?

496


Can you list out the areas in which data structures are applied extensively?

621


Is hashmap sorted?

511


How to find the missing element in integer array of 1 to 7?

520


What are the disadvantages of linked list over array?

461