Sir
y not dis : SDBCEF-/+++
tapan raised a new question ... ...
i have a serious doubt :(also see post 6,8)
Infix Expression : A + B + C / (E - F)
Postfix Expression is : A B + C E F - / +
OR
Postfix Expression is : A B C E F - / + +
-
UP 0 DOWN 0 0 27
27 Answers
bhaiya then kya
Infix Expression : A + B + C / (E - F)
both are correct :
Postfix Expression is : A B + C E F - / +
Postfix Expression is : A B C E F - / + +
kya ?
Tapan the expression you have given is a valid equivalent of the question.. .
but it is more apt for
(S+(D+(B+(C/(E-F)))))
why?
OH this was a wonderful link to lurn logic of pre-post FIX!!
thanQ again
http://scriptasylum.com/tutorials/infix_postfix/algorithms/infix-postfix/index.htm
Check it here..
to mera bhi to hai!!
HUM SAATH SAATH HAI
wat i meant was dat smiley by sir, was to say dat despite it makes no sense it has 2b dun lyk dat
dude hasi majak karne ka time nahi hai .. tomorrow is my comp. xam . ..
Postfix Expression is : A B C E F - / + +
makes no sense at all :) nishant bhaiya has mentioned above ... then this will also not make any sense ..
bhaiya aapka logic se kya answer of
S + D + B + C / (E - F)
is
S D + B + C E F - / + hai kya ?
but bhaiya if it is :
S + D + B + C / (E - F)
then the ans is
SD+ B C E F - / + +
then why cant A take the position of S + D expression and we get
A B C E F - / + +