1.

The expression 5 – 2 – 3 * 5 – 2 will evaluate to 18, if – is left associative and _____________(a) * has precedence over *(b) * has precedence over –(c) – has precedence over *(d) – has precedence over –I got this question in an online quiz.I'd like to ask this question from Implementation of Increment and Decrement topic in division Syntax Directed Definition and Translations of Compiler

Answer»

The CORRECT CHOICE is (c) – has PRECEDENCE over *

The BEST EXPLANATION: if – has precedence over* and if it associates from the right.



Discussion

No Comment Found

Related InterviewSolutions