## Discussion Forum

Que. | Given the following grammars :
G1: S → AB|aaB A → aA | ∈ B → bB | ∈ G2: S → A | B A → a A b | ab B → a b B | ∈ Which of the following is correct? |

a. | G1 is ambiguous and G2 is unambiguous grammars |

b. | G1 is unambiguous and G2 is ambiguous grammars |

c. | both G1 and G2 are ambiguous grammars |

d. | both G1 and G2 are unambiguous grammars |

Answer:both G1 and G2 are ambiguous grammars |