ISRO CS 2015 | Associativity-and-Precedence



Given the following expression grammar:
E→ E*F | F+E |F
F→ F-F | id
Which of the following is true?

  1. * has higher precedence than +
  2. – has higher precedence than *
  3. + and – have same precedence
  4. + has higher precedence than *




Answer : B,

Explanation:
– has higher precedence than *
Do U have Better Solution ?
Contribute your Solution in Comment Section below

Leave a Reply