Compiler-Design
October 7, 2023Operating-Systems
October 7, 2023Compiler-Design
Question 11
|
In the following grammar
X ::= X ⊕ Y/Y Y ::= Z * Y/Z Z ::= id
Which of the following is true?
‘⊕’ is left associative while ‘*’ is right associative
|
|
Both ‘⊕’ and ‘*’ is left associative
|
|
‘⊕’ is right associative while ‘*’ is left associative
|
|
None of the above
|
Question 11 Explanation:
![](https://solutionsadda.in/wp-content/uploads/2020/02/h1.jpg)
⊕ is left associative.
* is right associative.
Correct Answer: A
Question 11 Explanation:
![](https://solutionsadda.in/wp-content/uploads/2020/02/h1.jpg)
⊕ is left associative.
* is right associative.
Subscribe
Login
0 Comments