The higher the precedence operator, the first to be executed
Operators with the same precedence, executed from left to right
Using multiple operators is a common scenario
Assignment operation: variable = expression, first evaluates the result of the expression, "=" Runs Last forever
Numerical operations: According to the mathematical sequence of operations, the first parenthesis, and then multiplication to seek redundancy, and then add and subtract.
Logical operations: Will && and | | Expression at both ends of the symbol as a whole (returned as a bool type)
Trinocular operation: expression 1? Expression 2: Expression 3 First expression 1 (for bool type) and then judgment execution Expression 2 Expression 3 (two for the same type)
Other operations: Use parentheses or separate writing to control the order of operations.
Precedence of C # operators