This is because multiplicative operators take precedence over additive operators 这是因为乘法运算符的优先级高于加法运算符。
Results in 10 , because it indicates to the c compiler that the addition operator 的形式,结果将是10 ,因为它指示c #编译器必须在计算乘法运算符
You can also use the repeat operator , which you may recognize as the multiplication operator , to build up a bigger list from small segments 您还可以使用重复运算符,可以将该运算符识别为乘法运算符,以便从小片段中构建更大的列表。
Thus , in the following example , multiplication is performed before subtraction even though the subtraction operator appears before the multiplication operator in the expression 因此,在下面的示例中,虽然表达式中减法运算符出现在乘法运算符之前,但是先计算相乘。