请输入您要查询的字词:

 

单词 precedence
释义
precedence

Computer
  • The rules determining the order in which operations are carried out, if this is not defined unambiguously by brackets. For example, in most languages the expression

    ab+c
    will be evaluated by doing the multiplication first, and brackets would be used to enforce the alternative order thus:
    a(b+c)
    There is no consensus about precedence of operations in language, particularly when new operators may be introduced. A simple order used in Pascal is as follows:
    • unary NOT

    • multiplying operators

    • adding operators

    • relational operators

    Other languages may have further operators such as exponentiation and further categories such as logic operators, whose position in the order would be defined. Operators of the same precedence are usually applied in order from left to right, but in some languages the order is undefined.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/6/30 19:13:23