What does that mean in C ++

Equal operators: == and! =

syntax

ExpressionExpression
ExpressionExpression

Remarks

The binary equality operators compare the operands for strict equality or inequality.

The equality operators equal () and not equal () take precedence over the relational operators, but they behave similarly. The type of result for these operators is.

The equality operator () returns if both operands have the same value; otherwise it will be returned. The unequal operator () returns if the operands do not have the same value; otherwise it will be returned.

Operator keyword for! =

C ++ gives an alternative notation for. (There is no alternative notation for.) In C, the alternative notation is provided as a macro in the header. In C ++, the alternate spelling is a keyword. the use of or the C ++ equivalent is marked as deprecated. In Microsoft C ++, the or compiler option is required to enable the alternate case.

example

Equal operators can compare pointers to members of the same type. Pointer-to-member conversions are performed in such a comparison. Pointer-to-member can also be compared to a constant expression that evaluates to 0.

See also

Expressions with binary operators
Integrated C ++ operators, precedence; and associativity
Relational C operators and C equality operators