DATA STRUCTURE
Programming and Technical
Programming
Technical
Parenthesis are never needed in prefix or postfix
expressions. Why?
Read Solution (Total 4)
-
- basically parenthesis indicates the operation which need to be carried out first ie. according to the BODMAS rule.so incase of postfix/prefix expression they are the conversion of the original standard equation.where the brackets have been already taken into consideration and the formed postfix/prefix expression is the correct order of expansion of a given mathematical statement.
- 11 years agoHelpfull: Yes(13) No(0)
- parenthesis gives the order of calculation in any mathematical expression. But in prefix or postfix expressions the order of calculation is found out by the precedence value of opeartors itsel. So parenthesis are not required in these cases
- 10 years agoHelpfull: Yes(1) No(0)
- BCZ mathematical operators have their precedence i.e * > / > + > -
- 10 years agoHelpfull: Yes(0) No(0)
- Because parenthesis means checking what operation is to be considered first. In case of postfix or prefix it is a conversion of the standard equation that is given, i.e. brackets are already considered.
- 10 years agoHelpfull: Yes(0) No(0)
DATA STRUCTURE Other Question