Infix prefix Postfix

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 - / + +

27 Answers

21
tapanmast Vora ·

Sir
y not dis : SDBCEF-/+++

1
ANKIT MAHATO ·

thanku yaar :>

21
tapanmast Vora ·

BINGO ankit

1
ANKIT MAHATO ·

+ A + B / C - E F

21
tapanmast Vora ·

iska prefix kya hoga?

A + B + C / (E - F)

1
ANKIT MAHATO ·

okey bhaiya :)

62
Lokesh Verma ·

That isbecasue you have tofollow the stack algorith..

62
Lokesh Verma ·

no..

forboard exams only thefirst one will work

1
ANKIT MAHATO ·

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 ?

62
Lokesh Verma ·

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?

21
tapanmast Vora ·

OH this was a wonderful link to lurn logic of pre-post FIX!!

thanQ again

1
ANKIT MAHATO ·

okie bhaiya thanks .. :)

21
tapanmast Vora ·

okie thnx

62
Lokesh Verma ·

http://scriptasylum.com/tutorials/infix_postfix/algorithms/infix-postfix/index.htm

Check it here..

39
Dr.House ·

which subject?

62
Lokesh Verma ·

ankit post no 8 that you have given is correct

1
ANKIT MAHATO ·

pata nahi ..

21
tapanmast Vora ·

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

1
ANKIT MAHATO ·

dude hasi majak karne ka time nahi hai .. tomorrow is my comp. xam . ..

21
tapanmast Vora ·

makes no sense at all ":)"

1
ANKIT MAHATO ·

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 ..

21
tapanmast Vora ·

SDBCEF-/+++

1
ANKIT MAHATO ·

bhaiya aapka logic se kya answer of
S + D + B + C / (E - F)

is

S D + B + C E F - / + hai kya ?

1
ANKIT MAHATO ·

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 - / + +

62
Lokesh Verma ·

Postfix Expression is : A B C E F - / + +

makes no sense at all :)

62
Lokesh Verma ·

Infix Expression : A + B + C / (E - F)

A B + C E F - / +

1
ANKIT MAHATO ·

computer

Your Answer

Close [X]