Parenthesis are never needed in prefix or postfix
expressions. Why?
Answer Posted / poonam khandar
Parenthesis are used to define the sequence or priority of
execution of operations in given infix expression. When we
write an espression in prefix or postfix format we have
already considered the order of execution and only evaluate
the expression starting from left towars right in the
sequence the operators and operands are encountered.
| Is This Answer Correct ? | 34 Yes | 3 No |
Post New Answer View All Answers
What is the difference between list and arraylist?
What is best time complexity?
Why do we use different types of data structures?
Define hashing?
What is data algorithm?
Write the algorithm for converting infix expression to postfix expression?
How do you sort pseudocode?
What is a data structure node class?
What is binary search tree and explain its time complexity?
Which data structures are applied when dealing with a recursive function?
In depth questions regarding the data structures and the Databases used in the Projects developed.
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.
Find duplicates in infinite range. Which data structure to be used to give efficient solution?
What are the different types of hash functions?
Can we null keys in treemap?