Account
Categories

Operator


Definition:

An operator is a symbol that operates on operands.

It specifies the action to be performed on an operand, which can be either a variable or a value.

For example:

a = 2 and b = 4, then after adding a + b = 2 + 4 = 6.

where, a and b are variables, 2 and 4 are values, and the operator is +.

There are some operators as follows: