Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2024 Set 1
Questions

Q23

NAT1 markCompiler design

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

OperatorPrecedenceAssociativity+HighestLeft−HighRight∗MediumRight/LowRight\begin{array}{|c|l|l|}\hline \textbf{Operator} & \textbf{Precedence} & \textbf{Associativity} \\\hline {+} & \text{Highest} & \text{Left} \\\hline {-} & \text{High} & \text{Right} \\\hline {*} & \text{Medium} & \text{Right} \\\hline {/} & \text{Low} & \text{Right} \\\hline \end{array}

The value of the expression 3+1+5∗2/7+2−4−7−6/23+1+5 * 2 / 7+2-4-7-6 / 2 as per the above rules is ________.

Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.