版本2和3间的区别
于2007-07-19 07:41:50修订的的版本2
大小: 686
编辑: czk
备注:
于2008-02-23 15:34:07修订的的版本3
大小: 686
编辑: localhost
备注: converted to 1.6 markup
未发现区别!

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.