JMU JMU - Department of Computer Science
Help Tools
Mathematical Foundations: Operators


1 Introduction

An operator is a symbol indicating that an operation is to be formed on one or more operands. An operand can be a variable, literal, symbol or expression.

The most common operators are either unary (i.e., they have one operand) or binary (i.e., they have two operands).

2 Precedence and Associativity

The precedence of operators controls the order in which operations are performed. The associativity of an operator specifies the order in which operations of the same predence are performed (either left-to-right or right-to-left).

Copyright 2019