Obtain the postfix notation for the following infix notation of expression showing the
contents of the stack and postfix expression formed after each steps of conversion-
(A+B)*C+D/E-F
Answers
Answered by
1
Answer:
The expression A + B * C + D can be rewritten as ((A + (B * C)) + D) to show that the multiplication happens first, followed by the leftmost addition. A + B + C + D can be written as (((A + B) + C) + D) since the addition operations associate from left to right.
ʰᵒᵖᵉ ⁱᵗ ʰᵉˡᵖˢ....
ᵐᵃʳᵏ ᵐᵉ ᵃˢ ᵇʳᵃⁱⁿˡⁱᵉˢᵗ ❤❤
Similar questions
Social Sciences,
4 months ago
Computer Science,
4 months ago
Computer Science,
9 months ago
Math,
9 months ago
Business Studies,
1 year ago
Math,
1 year ago