Basic Syntax

Operator

English

Overview

A symbol that performs an operation on values, such as addition or comparison.

Details

A symbol representing an operation -- arithmetic, comparison, logical, and so on -- whose precedence and associativity are defined per language. Logical operators like && and || typically use short-circuit evaluation -- skipping the right-hand side once the left side alone determines the result -- so a side effect written on the right may never run.

More Programming terms