58 views

\begin{align*} \text {stmt} &\rightarrow \text{if expr then stmt else stmt} \\ & \;\; \;\; | \text{ if expr then stmt} \\ & \;\; \;\; | \text{ other} \end{align*}

Which of the following statement/s is/are true ??

• A. The grammar is ambiguous and the ambiguity cannot be resolved.
• B. The grammar is unambiguous
• C. The grammar is ambiguous and the ambiguity can be resolved
• D. None of these
closed as a duplicate of: GATE1990-16a
closed | 58 views
pC,,,I explore QS very late :) :)