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 4
tokens 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 tokens
in the stack at any moment.
答案:登入後查看
統計: A(1), B(0), C(0), D(1), E(0) #2855508
統計: A(1), B(0), C(0), D(1), E(0) #2855508
詳解 (共 2 筆)
#6078157
The highest number of tokens in the stack was observed with * ( + /, which contains 4 tokens.
Conclusion for (A): True.
0
0