top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+3 votes
249 views
Parenthesis are never needed in prefix or postfix expressions. Why?
posted Aug 28, 2015 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote
 
Best answer

In case of post fix or prefix they follow specific rule which shows the order of operation to be carried out on operand.

In case of post fix : Input : cab++ Expansion c(a+b)+ ---> c+ a+b So here we followed the order where operator is following the operands.
In case of prefix : Input : +c+ab Expansion c + +ab ---> c + a + b So here we followed the where operator precedes the operand.

answer Aug 28, 2015 by Sachidananda Sahu
Similar Questions
0 votes

How to convert prefix expression to postfix expression? Any sample code in C would be helpful?

+7 votes

Since web page have multiple URLs pointing to them , as a web server developer how can you make sure you have never seen the same content before ??

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...