GATE CSE
First time here? Checkout the FAQ!
x
0 votes
67 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
asked in Compiler Design by Veteran (50.9k points)  
closed by | 67 views
pC,,,I explore QS very late :) :)


Top Users Aug 2017
  1. ABKUNDAN

    4658 Points

  2. Bikram

    4138 Points

  3. akash.dinkar12

    3144 Points

  4. rahul sharma 5

    2928 Points

  5. manu00x

    2682 Points

  6. makhdoom ghaya

    2390 Points

  7. just_bhavana

    2058 Points

  8. Tesla!

    1782 Points

  9. pawan kumarln

    1574 Points

  10. learner_geek

    1558 Points


24,892 questions
31,967 answers
74,214 comments
30,083 users