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 ?    46 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bubble sort in data structure?

514


What is a spanning tree?does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?

512


How do you sort an arraylist in descending order?

466


What is the difference between hashset and treeset?

512


What is the basic of data structure?

508






What is the difference between an array and vector?

529


What is unbounded queue?

499


What are the advantages of bubble sort?

482


Can you change size of array once created?

466


How does hashset maintain order?

530


Is quicksort faster than merge sort?

494


What is ascending and descending order?

503


Can you distinguish between ArrayList and Array?

592


Is heap sort faster than quicksort?

479


Why is data structure needed?

536