G
The following is a syntactically correct expression in the above grammar: E
Suppose that the variables in this expression have the
following values assigned to them:
V
What is the integer value of
the expression under this assignment of values? Assume
that any division that occurs is integer division (i.e.,
it always truncates to the largest integer less than or
equal to the quotient, including negative quotients).
In case a division by zero occurs, indicate this by
giving your answer as the word Infinity (with the first letter
capitalized). Otherwise, the final answer is always an integer.
CorrectAnswer
Be sure to note how the grammar controls the precedence of the operators.
Be sure to note how the grammar controls the associativity of the operators.