Advertisements
Advertisements
प्रश्न
Convert the following infix notation to prefix form.
P/Q + (S * F + X/R)
लघु उत्तरीय
Advertisements
उत्तर
To convert the infix expression P/Q + (S * F + X/R) to prefix form, we first solve the parentheses where multiplication and division take precedence over addition, yielding + SF/XR. We then convert the remaining division term P/Q to PQ. By finally applying the main addition operator to these two prefix blocks and moving it to the front, we obtain the complete prefix notation: +/PQ + *SF/XR.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
