6 6 votes Consider the following prefix expression:$\texttt{+ * 2 3 / 8 4}$Which of the following is its correct postfix form?$\texttt{2 3 * 8 4 / +}$$\texttt{+ * 2 3 / 8 4}$$\texttt{2 * 3 + 8 / 4}$$\texttt{2 3 8 4 * / +}$ Data Structures goclasses goclasses-cs-dpp goclasses-cs-dpp-day-318 data-structures goclasses-ds-practice-questions prefix postfix-expression + – GO Classes 229 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote Prefix expression:$\texttt{+ * 2 3 / 8 4}$This represents the expression tree:Postfix means postorder traversal:Left $\rightarrow$ Right $\rightarrow$ RootLeft subtree $\texttt{* 2 3}$ becomes:$\texttt{2 3 *}$Right subtree $\texttt{/ 8 4}$ becomes:$\texttt{8 4 /}$Then the root $\texttt{+}$ comes at the end.So the postfix expression is:$\texttt{2 3 * 8 4 / +}$Correct Option: A GO Classes answered Jul 9 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote Answer: A Meticulous_March answered Jul 10 Meticulous_March comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Here is the Details Explanation Prashant-G answered Sep 15 Prashant-G comment Share Follow 0 reply Please log in or register to add a comment.