Redirected
retagged by
565 views

3 Answers

1 votes
1 votes
B is correct ans..

We start from top to bottom write down operators in ascending order I.e. lower precedence operator first then next one and so on. When two operators having same precedence we will go through associativity. in given question + having higher precedence...
0 votes
0 votes
Ans is C. As higher precedence operators are place away from start symbol as much as possible.

Related questions

2 votes
2 votes
3 answers
1
radha gogia asked Mar 19, 2018
1,178 views
If I have the grammar :E->E*F | F+E |FF->id ,Now here although + and * are defined at the same level , with different associativity but this grammar produces 2 different ...
0 votes
0 votes
1 answer
2
ukn asked Jan 19, 2017
396 views
0 votes
0 votes
1 answer
3
saumya mishra asked Jun 15, 2018
2,209 views
What is the difference between operator grammar and operator precedence grammar?
0 votes
0 votes
1 answer
4
jatin khachane 1 asked Jun 7, 2017
499 views
E → E + E | E * E | ( E ) | idWhat will be operator precedence for above grammar.Is precedence differs due to ambiguity