This grammar produces the dangling-else problem.
In such cases the else can be associated with more than one if, producing more than one parse tree.
Thus the grammar is ambiguous.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.