Which of the following grammars is ambiguous?AS → aSb | εBE → E + T | T, T → idCE → E + E | E * E | idDS → aS | a Correct answer: C ExplanationThe string id + id * id has two different parse trees under E → E + E | E * E | id, so the grammar is ambiguous, while the other grammars give a unique parse tree for every string. Join the discussion Report an error