Associativity and precedence of operators is defined by grammar. So C should be right.
Please help
Actually here u have to draw the tree and associate semantic rule and work accordingly..
However as the grammar is ambiguous as clear from the grammar , so we can construct the parse tree in other way too i.e. taking E --> E ↑ E at the topmost level so in that case we will get A) as correct option..Hence both are true..
Hence option C) is correct answer..
64.3k questions
77.9k answers
244k comments
80.0k users