Parenthesis is never required in postfix or prefix expressions, why?



Parenthesis is never required in postfix or prefix expressions, why?..

Answer / Anil Kumar Gupta

In postfix and prefix notations, operators are placed after (in postfix) or before (in prefix) their operands. This eliminates the need for parentheses since the order of operations is already defined. In postfix notation, operators only require operands on either side, while in prefix notation, operators are written before all their operands.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Why do we use hashmap?

1 Answers  


What is meant by arraylist?

1 Answers  


What is the difference between a stack and an array?

1 Answers  


Why do we use a multidimensional array in data structure?

1 Answers  


Which interface treemap implements?

1 Answers  


Mention one advantage and disadvantage of using quadratic probing?

1 Answers  


Convert following infix expression to the prefix expression. a - b + c * (d / e - (f + g))

33 Answers   Amazon, Microsoft, Star Technologies, Sun Microsystems, Wipro,


Explain recursive function & what is the data structures used to perform recursion?

1 Answers   TCS,


Explain the difference between a list and array.

1 Answers   TCS,


Is binary tree a binary search tree?

1 Answers  


How can you insert a node to the beginning of a singly linked list?

1 Answers  


What are the different data structures?

1 Answers  


Categories