iso646.h in C Language
The iso646.h header file specifies alternative spellings for some common operators. For example, it uses the keyword and as a substitute for the logical operator &&.
Here’s how the following condition can be expressed using these alternatives:
1 | if (x > 6 and x < 12) |
The defined alternative spellings are as follows:
andreplaces&&and_eqreplaces&=bitandreplaces&bitorreplaces|complreplaces~notreplaces!not_eqreplaces!=orreplaces||or_eqreplaces|=xorreplaces^xor_eqreplaces^=
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.