1.

Compute E.value for the root of the parse tree for the expression:2 # 3 & 5 # 6 &4.(a) 200(b) 180(c) 160(d) 40The question was posed to me at a job interview.This question is from Top-Down Parsing topic in section Topdown Parsing of Compiler

Answer»

Correct ANSWER is (c) 160

The best explanation: Higher precedence operator will never produce an expression with operator with LOWER precedence.&># in terms of precedence ORDER.



Discussion

No Comment Found

Related InterviewSolutions