Skip to content

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

GateBrew
← GATE CSE 2016 Set 1
Questions

Q45

NAT2 marksCompiler designMedium

The attribute of three arithmetic operators in some programming language are given below.

OPERATORPRECEDENCEASSOCIATIVITYARITY+HighLeftBinary−MediumRightBinary∗LowLeftBinary\begin{array}{|c|l|l|l|}\hline \textbf{OPERATOR} & \textbf{PRECEDENCE} & \textbf{ASSOCIATIVITY} & \textbf{ARITY} \\\hline {+} & \text{High} & \text{Left} & \text{Binary} \\\hline {-} & \text{Medium} & \text{Right} & \text{Binary} \\\hline {*} & \text{Low} & \text{Left} & \text{Binary} \\\hline \end{array}

The value of the expression 2−5+1−7∗32-5+1-7*3 in this language 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.