Page 184 - C++
P. 184

Symbol scanned          Stack status             Postfix expression
                          from infix


                                                  (


                          (                       ((




                          A                       ((                       A


                          +                       ((+                      A



                          B                       ((+                      AB



                          )                       (                        AB+



                          *                       (*                       AB+



                          (                       (*(                      AB+



                          C                       (*(                      AB+C



                          -                       (*(-                     AB+C



                          D                       (*(-                     AB+CD



                          )                       (*                       AB+CD-



                          /                       (/                       AB+CD-*



                          E                       (/                       AB+CD-*E



                          )                                                AB+CD-*E/




        Answer: Postfix expression of (A+B)*(C-D)/E is AB+CD-*E/



                                                             OR
   179   180   181   182   183   184   185   186   187   188   189