Question: In a certain language, the expression 5 - 3 + 2 * 4 + 1 , evaluates to 0 . Which of the following conclusions

In a certain language, the expression 5-3+2*4+1, evaluates to 0.
Which of the following conclusions about the precedence &
associativity of the operators +,-,* are correct? Justify.
a)+ has precedence over - & - has precedence over *
b) All these have equal precedence & associative left to right
c) All these have equal precedence & associative to the right to left
d)+ & - have equal precedence, which is over * & all associative to the
left
e) none of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!