版本1和3间的区别 (跳过第2版)
于2007-07-18 22:33:48修订的的版本1
大小: 629
编辑: czk
备注:
于2008-02-23 15:34:07修订的的版本3
大小: 686
编辑: localhost
备注: converted to 1.6 markup
删除的内容标记成这样。 加入的内容标记成这样。
行号 1: 行号 1:
## page was renamed from TCPL/A.7.10 Equality Operators

A.7.10 Equality Operators

  • equality-expression:
    • relational-expression equality-expression == relational-expression equality-expression != relational-expression

The == (equal to) and the != (not equal to) operators are analogous to the relational operators except for their lower precedence. (Thus a<b == c<d is 1 whenever a<b and c<d have the same truth-value.)

The equality operators follow the same rules as the relational operators, but permit additional possibilities: a pointer may be compared to a constant integral expression with value 0, or to a pointer to void. See Par.A.6.6.

TCPL/A.07.10_Equality_Operators (2008-02-23 15:34:07由localhost编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.