Hey guys, I need some help regarding prefix and postfix notations. I got myself confused like really bad. Correct me If i'm wrong...
So here are the questions...
infix > prefix notation
a) A * (B+C) - D
My answer is
= * A (+BC) - D
= *+A(BC) - D
= *+-A B C D
b) M / (E+Z) * N
= / M (E+Z) * N
= /+ (EZ) * m
= /+* MEZ
infix > postfix notation
a) - A / * E B M
= A / * E B M -
= A / E B M - *
= A E BM - * /
b) - + J K * L M
= + J K * L M -
= J K * L M - +
= J K L M - + *
I don't think what i did is right... >_>
Thanks....