how to check that second one is inherently ambiguous i have little confusion in it
According to me only option A is correct. For G2, the grammar is ambiguous as there can be two derivations for the string “abc”. and further for it no unambiguous grammar exists for it. Hence only option A is correct.
64.3k questions
77.9k answers
244k comments
80.0k users