S Stasenndb New member Sep 21, 2021 #1 The prefix expression of the postfix expression AB+CD-* is __________ A. (A+B)*(C-D) B. +AB*-CD C. A+*BCD- D. *+AB-CD
The prefix expression of the postfix expression AB+CD-* is __________ A. (A+B)*(C-D) B. +AB*-CD C. A+*BCD- D. *+AB-CD
L Lê Minh Member Sep 21, 2021 #2 Answer: d Explanation: To convert from postfix to prefix, we first convert it to infix and then to prefix. postfix : AB+CD-* infix ⇒ (A+B) * (C-D) So, prefix ⇒ +AB*-CD, ⇒ *+AB-CD. Therefore, correct choice is *+AB-CD. Upvote 0 Downvote
Answer: d Explanation: To convert from postfix to prefix, we first convert it to infix and then to prefix. postfix : AB+CD-* infix ⇒ (A+B) * (C-D) So, prefix ⇒ +AB*-CD, ⇒ *+AB-CD. Therefore, correct choice is *+AB-CD.