問題詳情

1. Which of the following statements are true?
(A) When converting the infix expression a*(bte/d)*(e-l)+g to its postfix form, there are at most 4tokens in the stack at any moment.
(B) The postfix form of infix expression (a+b-c)*(d-e) is abc-+de-*
(C) The infix expression of postfix expression 3k-2m4+*+pab-*/ is((3-k)+2(m+4)/(p*(a-b))
(D) When converting the infix expression a*(b+c/d)*(c-) to its postfix form, there are at most 3 tokensin the stack at any moment.

參考答案

答案:[無官方正解]
難度:計算中-1
書單:沒有書單,新增

用户評論

December Ann】評論

(A)正確(題目的infix有誤,應為a*(b+c/d)*(e-f)+g)(B)錯誤,應為ab+c-de-*(C)錯誤,應為(3-k)+2*(m+4)/(p*(a-b))(D)錯誤,應為最多4個tokens(題目的infix有誤,應為a*(b+c/d)*(e-f))