हिंदी

Convert the Following Infix Expression to Its Equivalent Postfix Expression, Showing the Stack Contents for Each Step of Conversion U * V + R/(S - T) - Computer Science (C++)

Advertisements
Advertisements

प्रश्न

Convert the following Infix expression to its equivalent Postfix expression, showing the stack contents for each step of conversion

U * V + R/(S - T)

उत्तर

Element Stack Postfix
U   U
* * U
V * UV
+ + UV*
R + UV*R
/ +/ UV*R
( +/( UV*R
S +/( UV*RS
- +/(­ UV*RS
T +/(­- UV*RST
) +/ UV*RST-
    UV*RST­-/
    UV*RST­/+

 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2014-2015 (March) All India Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×