Parenthesis are never needed in prefix or postfix
expressions. Why?
Answer Posted / arnoldindia
Evaluation of postfix or prefix notations are done with the
help of stacks. So there is no need for brackets.
In other words, infix notation is human-readable format,
which need brackets based on BODMAS rule to understand the
order of execution. The postfix or prefix are
machine-readable format. The conversion and evaluation of
postfix and prefix are applications of stack model.
| Is This Answer Correct ? | 47 Yes | 7 No |
Post New Answer View All Answers
A lot of data structures related programs related to only trees and graphs, like the diameter of a tree, removing the loops in a graph etc.
List the differences between comparable and comparator interface?
What is the Role of push() and pop() method?
why boundary tag representation is used?
Can arraylist contain duplicates?
What is the time complexity of hashmap get () and put () method?
What is data structure in programming language?
Is copyonwritearraylist thread safe?
Is hashmap synchronized?
List some applications of tree-data structure?
Is char array null terminated?
How would you use qsort() function to sort the name stored in an array of pointers to string?
How efficient is binary search?
Define an abstract data type (adt)?
What is mean by merge sort?