Stack Operations – 2 :: Discussion

1.The postfix form of the expression (A+ B)*(C*D- E)*F / G is?
A.AB+ CD*E – FG /**
B.AB + CD* E – F **G /
C.AB + CD* E – *F *G /
D.AB + CDE * – * F *G /
Answer:  Option  C

(((A+ B)*(C*D- E)*F) / G) is converted to postfix expression as
(AB+(*(C*D- E)*F )/ G)
(AB+CD*E-*F) / G
(AB+CD*E-*F * G/). Thus Postfix expression is AB+CD*E-*F*G/

Tutorial Link:
Published by:

Comments are not available

Quick Links

GAT Subject

   Computer Science    English    Agriculture    Botany    


   Computer Science    Civil Engineering    


   Networking    Electronics    Database    

Past Papers

   Model Papers    FPSC    PPSC    NTS