Operator

An operator is a symbol within a mathematical expression that defines a specific operation. For example, the plus symbol (+) is an operator that represents addition.

Common operators include:

  • + (add)
  • - (subtract)
  • * or x (mulitply)
  • / or ÷ (divide)
  • % or mod (modulus)

Consider the calculation:

2 + 3 x 4 = 14

In the expression above, + and x are operators, while the numbers 2, 3, and 4 are operands. 14 is the result (since the x operand takes precedence over the + operand).

While operands are typically associated with mathematics, they also apply to computer science. For example, the function below contains two operators and three operands.

halfPlusSeven(x)
{
	$total = $x / 2 + 7;
	return $total;
}

The / and + symbols are operators, while the variable $x and the numbers 2 and 7 are operands. If x = 30, the expression will evaluate as (30 / 2) + 7, which will return a result of 22.

Updated July 20, 2022 by Per C.

quizTest Your Knowledge

RGB and CMYK are types of what?

A
Hues
0%
B
Saturations
0%
C
Color models
0%
D
Color profiles
0%
Correct! Incorrect!     View the Color Model definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Operator on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation bar directly below the definition.

Our goal to explain computer terminology in a way that is easy to understand. We strive for accuracy and simplicity with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

TechTerms Newsletter

Improve your technical knowledge with our daily or weekly newsletter! Subscribe today and get new terms and quizzes delivered to your inbox.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.