An example of the operator

zhaozj2021-02-16  131

Under different compilers, some of the results obtained are different, such as the following expression: a = 1, b = 1; (A * B B); get 3 in VC, and It is 1 × 2 2 = 4 in the BC. From this example, it can be seen that the priority between operators is not particularly necessary, and the topic like this should be divided into two statements, and it is not uncomfortable. Just in such an expression, a * (a b). Generally we think that the calculation level of parentheses is the highest, but it is wrong, first a. Then enter the brackets. Alas! Tired, no need, but some topics are like this, sad!

转载请注明原文地址:https://www.9cbs.com/read-8777.html

New Post(0)