iso646.h

From Wikipedia, the free encyclopedia

C Standard Library headers

The iso646.h header file is part of the C standard library. It was added to this library in a 1995 amendment to the C90 standard. It defines a number of macros which allow programmers to use C language bitwise and logical operators, which, without the header file, cannot be quickly or easily typed on some international and non-QWERTY keyboards.

[edit] The macros

The iso646.h header defines the following 11 macros as stated below:

  • and defined as &&
  • and_eq defined as &=
  • bitand defined as &
  • bitor defined as |
  • compl defined as ~
  • not defined as !
  • not_eq defined as !=
  • or defined as ||
  • or_eq defined as |=
  • xor defined as ^
  • xor_eq defined as ^=

[edit] C++

These symbols are keywords in the ISO C++ programming language and do not require the inclusion of a header file. For consistency, however, the C++98 standard provides the header <ciso646>.

[edit] External links