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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?