GATE CSE
First time here? Checkout the FAQ!
x
0 votes
43 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 (40.5k points)  
closed by | 43 views
pC,,,I explore QS very late :) :)
Members at the site
Top Users Feb 2017
  1. Arjun

    4672 Points

  2. Bikram

    4004 Points

  3. Habibkhan

    3738 Points

  4. Aboveallplayer

    2966 Points

  5. sriv_shubham

    2278 Points

  6. Smriti012

    2212 Points

  7. Arnabi

    1814 Points

  8. Debashish Deka

    1788 Points

  9. sh!va

    1444 Points

  10. mcjoshi

    1444 Points

Monthly Topper: Rs. 500 gift card

20,788 questions
25,938 answers
59,531 comments
21,923 users