adplus-dvertising
frame-decoration

Question

The expression 5 - 2 - 3 * 5 - 2 will evaluate to 18, if - is left associative and

a.

* has precedence over *

b.

* has precedence over -

c.

- has precedence over *

d.

- has precedence over -

Answer: (c).- has precedence over *

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The expression 5 - 2 - 3 * 5 - 2 will evaluate to 18, if - is left associative and