0
2.1kviews
Convert following expression into postfix and prefix.

a) (A-B)* (C+D)

b) (A + B) / ( C + D) – ( D * E)

1 Answer
0
20views

infix to postfix :

a) (A-B)*(C+D)

[AB-]*[CD+]

AB-CD+*

b) (A + B) / (C + D) – (D * E)

[AB+] / [CD+] – [DE*]

[AB+CD+/] – [DE*]

Infix to prefix:

a) (A–B) * (C+D)

[–AB] * [+CD]

*–AB+CD

b) (A + B) / ( C + D) – ( D * E)

[ +AB ] / [ +CD ] – [ *DE ]

[ /+AB+CD ] – [ *DE ]

–/+AB+CD*DE

Please log in to add an answer.