| Categories of Operators and Punctuators

Previous | Operators and Punctuators | Next

- Unary operators
- Binary operators
- Ternary operators
- Punctuators

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

- a bitwise AND (`A & B`);
- an address operator (`&A`);

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.