Operator (computer programming)
Construct associated with a mathematical operation in computer programs / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Operator (computer programming)?
Summarize this article for a 10 year old
In computer programming, operators are constructs defined within programming languages which behave generally like functions, but which differ syntactically or semantically.
This article needs additional citations for verification. (January 2019) |
Common simple examples include arithmetic (e.g. addition with +
), comparison (e.g. "greater than" with >
), and logical operations (e.g. AND
, also written &&
in some languages). More involved examples include assignment (usually =
or :=
), field access in a record or object (usually .
), and the scope resolution operator (often ::
or .
). Languages usually define a set of built-in operators, and in some cases allow users to add new meanings to existing operators or even define completely new operators.