The Gateway to Computer Science Excellence
+1 vote
115 views

in Compiler Design by Active (4.8k points)
edited by | 115 views
0

refer this answer....

https://gateoverflow.in/87037/gate2005-83b

u will get a rough idea...

1 Answer

0 votes
Precedence will be same...

Now,left associative -- (((3+2)*5)+7) =32

Right associative-- (3+(2*(5+7)))=27

This can also be derived from the parse Tree...

Hence b is the answer
by Active (1.1k points)
0
Why you took operators right associative
0
The options asks for values when operators are taken either left or right associative...

So I evaluated for both the cases.
0
What if both the answers by left and right associativity were correct?
0
Then there should've been an option as "both a and b "..:p
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,741 questions
57,252 answers
198,061 comments
104,697 users