6.5.10 Bitwise AND operator

Previous Table of Contents "New C Standard" commentary


                AND-expression & equality-expression

1235 Each of the operands shall have integer type.

1236 The usual arithmetic conversions are performed on the operands.

1237 The result of the binary & operator is the bitwise AND of the operands (that is, each bit in the result is set if and only if each of the corresponding bits in the converted operands is set).

1238 92) Two objects may be adjacent in memory because they are adjacent elements of a larger array or adjacent members of a structure with no padding between them, or because the implementation chose to place them so, even though they are unrelated.

1239 If prior invalid pointer operations (such as accesses outside array bounds) produced undefined behavior, subsequent comparisons also produce undefined behavior.


Created at: 2008-01-30 02:39:43 The text from WG14/N1256 is copyright © ISO