Q. 7 The grammar S → aSa | bS | c is
(A) LL (1) but not LR (1)
(B) LR (1) but not LL(1)
(C) Both LL (1) and LR (1)
(D) Neither LL (1) nor LR (1)
Answer: (C)
Explanation:
Q. 7 The grammar S → aSa | bS | c is
(A) LL (1) but not LR (1)
(B) LR (1) but not LL(1)
(C) Both LL (1) and LR (1)
(D) Neither LL (1) nor LR (1)
Answer: (C)
Explanation: