bitand, &

From RAD Studio
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


Category

Alternative Representations of Tokens (C++), Operators (C++)

Syntax

Description

The bitand operator is an alternative representation of the &operator (bitwise AND).

The bitwise AND operator compares each bit of the first operand to the corresponding bit of the second operand When both bits are 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0.

In order to use the bitand operator, you need to check the Enable new operator names option (the -Vn compiler switch, available on the Compatibility page of the Project > Options dialog box).