Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
Operators are symbols or keywords used in programming languages to perform specific operations on one or more operands. They manipulate data and produce a result.
Arithmetic operators are used to perform mathematical calculations such as addition, subtraction, multiplication, division, etc.
Comparison Operators: Comparison operators are used to compare two values and determine their relationship (e.g., equal to, greater than, less than).
Logical Operators: Logical operators are used to combine multiple conditions or expressions and evaluate them as a single boolean value (e.g., AND, OR, NOT).