Categories of Operators and Punctuators

Previous Operators and Punctuators Next

The operators # and ## are used only by the preprocessor.

Depending on context, the same operator can have more than one meaning. For example, the ampersand ('&') can be interpreted as

In the first case, the '&' is a unary operator; in the second, the '&' is a binary operator. Similarly, the comma ',' may act as an operator and as a punctuator, etc.