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


Top Users May 2017
  1. akash.dinkar12

    3154 Points

  2. pawan kumarln

    1636 Points

  3. sh!va

    1590 Points

  4. Arjun

    1350 Points

  5. Bikram

    1298 Points

  6. Devshree Dubey

    1246 Points

  7. Angkit

    1044 Points

  8. Debashish Deka

    1042 Points

  9. LeenSharma

    880 Points

  10. srestha

    706 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 May 22 - 28
  1. Bikram

    384 Points

  2. pawan kumarln

    262 Points

  3. Ahwan

    236 Points

  4. Arnab Bhadra

    136 Points

  5. LeenSharma

    118 Points


22,770 questions
29,090 answers
65,119 comments
27,635 users