GATE CS 2016, set 1 · Question 55 · Programming and Data Structures · Numerical answer (NAT) · 2 marks · no negative marks
The attributes of three arithmetic operators in some programming language are given below.
The value of the expression 2 - 5 + 1 - 7 ∗ 3 in this language is ______ .
| Operator | Precedence | Associativity | Arity |
|---|---|---|---|
| + | High | Left | Binary |
| - | Medium | Right | Binary |
| ∗ | Low | Left | Binary |
Answer
Answer 9
Answer from the official GATE CS 2016 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes