What is an operand

Operator, operand, operation

In C and C ++, the actual program execution is described using operators. In addition to mathematical links such as,, and even function calls and memory allocations are to be understood as operators. The units that are read out or changed by operators are to be referred to as.

Each (to be understood as the combination of operands by means of an operator) generates a return value, which in turn can serve as an operand. A concatenation or nesting of several operations is known as an expression.


The following small example is given here to illustrate the interaction between operators and operands:

Here, the variables and are to be understood as two operands, which are linked by the addition operator. The result of this operation counts as an operand, which is assigned to the operand using the assignment operator.

Understanding operators and operands is generally not a problem, since it is based on common mathematics, where operators are also used and the results of one operation can serve as an operand for another. However, there are some special features in programming that must be taken into account.

In the languages ​​C and C ++, various properties are specified for operators and operands, which are listed in the detailed descriptions of the operators or can be found in the overview on the following pages:

Imprint © Tobias StammEmail
[email protected]