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