Given the following expression grammar:
E→ E*F | F+E |F
F→ F-F | id
Which of the following is true?
- * has higher precedence than +
- – has higher precedence than *
- + and – have same precedence
- + has higher precedence than *
Answer : B,
Explanation:
– has higher precedence than *
Do U have Better Solution ?
Contribute your Solution in Comment Section below