search
Log In
1 vote
146 views

in Compiler Design
edited by
146 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
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

Related questions

0 votes
1 answer
2
166 views
Which of the Statements are True : S1: LR(1) grammar can be LR(0) but not LL(1). S2 : Every regular language is LL(1) S3 : Three address code is linear representation of Syntax Tree.
asked Jan 16, 2019 in Compiler Design Na462 166 views
2 votes
2 answers
3
1 vote
0 answers
4
...