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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
