Parenthesis are never needed in prefix or postfix
expressions. Why?

Answer Posted / jayanth

Basically Parenthesis indicate the operations which
need to be carried out first ie according to the
BODMAS rule..SO in case of postfix or prefix expression
they are actualy conversions of the orginal standard
equation.Where the brackets have already been taken
into consideration,,,and the formed prefix/postfix
expression is the correct order of expansion of a given
mathematical statement..

Is This Answer Correct ?    149 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the different ways of representing expressions?

891


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

657


Write a program to insert an element and in the specific position in the array?

685


What is an externalizable interface?

692


Define degree of the node?

740






Can you distinguish between ArrayList and Array?

781


Differentiate bfs and dfs?

744


Design a datastructure to represent the movement of a knight on a chess board

707


Suppose in an integer array, there is 1 to 100 number, out of one is duplicate, how to find?

721


Calculate the address of a random element present in a 2d array, given base address as ba.

1246


What is data and information explain with example?

701


Which is the parent class of printerstatereasons class?

656


Differentiate between hashset and treeset.

712


Can you have an arraylist of arrays?

678


Which language is best for data structures?

713