Consider the grammar: E → E + E | E * E | id Show that the grammar is ambiguous for the string: id + id * id

Consider the grammar:

E → E + E | E * E | id

Show that the grammar is ambiguous for the string:

id + id * id

From the Combined Bank Senior Officer July 2026 – Written exam, question 73 of 73.

More from this paper