InterviewSolution
Saved Bookmarks
| 1. |
Consider the grammar given below E? E+E | E*E | E-E | E/E | E^E | (E) | id Assume that + and ^ have the same but least precedence, * and / have the next higher precedence but the same precedence and finally ^ has the highest precedence. Assume + and ^ associate to the left like * and / and that ^ associates to the right. Choose the correct for the ordered pairs (^,^), (-,-), (+,+), (*,*) in the operator precedence table constructed for the grammar.(a) All (c) < >, =(d) < > > > |
|
Answer» The correct answer is (d) < > > > Easiest explanation: This relation is established of basis of the precedence of operators. |
|