An operator in a programming language is a symbol that tells the compiler or interpreter to perform a specific mathematical, relational or logical operation and produce a final result.

C has many powerful operators.
Many C operators are binary operators, which means they have two operands. For example, in `a / b`

, `/`

is a binary operator that accepts two operands (`a`

, `b`

).
There are some unary operators which take one operand (for example: `~`

, `++`

),
and only one ternary operator `? :`

.

Pipe operators, available in `magrittr`

, `dplyr`

, and other R packages, process a data-object using a sequence of operations by passing the result of one step as input for the next step using infix-operators rather than the more typical R method of nested function calls.

Note that the intended aim of pipe operators is to increase human readability of written code. See Remarks section for performance considerations.

An operator is something that takes one or more values (or expressions, in programming jargon) and yields another value (so that the construction itself becomes an expression).

Operators can be grouped according to the number of values they take.

Page 1 of 2