Consider the operator precedence and associativity rules for the integer…

GATE · 2024 · CS · Set 1 · Computer Science & IT

Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below.

Operator

Precedence

Associativity

+

Highest

Left

−

High

Right

*

Medium

Right

/

Low

Right

The value of the expression 3 + 1 + 5 ∗ 2 / 7 + 2 − 4 − 7 − 6 / 2 as per the above rules is __________

Attempted by 673 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…