Had this question in the interview yesterday. Which is better to use? Infix(with parenthesis) or Postfix? State with reason..
I only could tell them that:
- it is easier for the compilers to process postfix expression for arithmetic evaluations and operator precedence.
- More memory is used for storing and processing the parenthesis.
Please throw some light on whether I am right on this?