Oracle Graduate Trainee测试题
题目如下:
In a programming language with only two levels of operator precedence — unary binding tighter than binary — and left-to-right evaluation, what is the value of the following expression?
– 7 – – 5 * – 4 + 3 * 2
A. 4
B. 22
C. -21
D. -33
翻译下:
某种编程语言只有两种运算符优先级,一元运算符比二元运算符有更强的结合性,并且运算顺序从左到右,下面表达式的计算结果是什么?
A. 4
B. 22
C. -21
D. -33
我有两种运算符优先级,但是也没指明乘法和除法优先级高于加减法啊,所以不知道怎么下手,求指点