Operators in C and C++: Difference between revisions

Content deleted Content added
C++ operator synonyms: 'certain' adds no value
C++ operator synonyms: 'exactly' adds no value; reword for clarity and get to the point
Line 742:
|}
 
TheseEach cankeyword beis useda exactly the samedifferent way asto thespecify punctuationan symbolsoperator they replace,and as theysuch arecan notbe theused sameinstead operator under a different name, but rather simple token replacements forof the ''name''corresponding (charactersymbolic string) of the respective operatorvariation. ThisFor means that the expressionsexample, {{code|1=(a > 0 and not flag)}} and {{code|1=(a > 0 && !flag)}} havespecify identicalthe meaningssame behavior. It also means that,As foranother example, the <code>bitand</code> keyword may be used to replace not only the ''bitwise-and'' operator but also the ''address-of'' operator, and it can even be used to specify reference types (e.g., {{code|1=int bitand ref = n}}).

The ISO C specification makes allowance for these keywords as preprocessor macros in the header file [[iso646.h|{{code|iso646.h}}]]. For compatibility with C, C++ also provides the header {{code|iso646.h}}, the inclusion of which has no effect. Until C++20, it also provided the corresponding header [[ciso646|{{code|ciso646}}]] which had no effect as well.
 
==See also==