You are on page 1of 3

OPERATORS AND EXPRESSION

OPERATORS
It is basically a symbol or token which performs
arithmetical or logical operations is called as an
operator.
ARITHMETICAL OPERATORS
ARITHMETICAL ARITHMETICAL
EXPRESSION STATEMENT
1.An arithmetical 1.If an arithmetical
expression may contain expression is assigned to a
variables, constants and variable then it is known
arithmetical operators to as an arithmetical
produce a meaningful statement.
result. Example: z=x+y .
Example: x+y.
The operators, which are used to perform arithmetical
calculations in a program, are known as Arithmetical
Operators.

1.UNARY (+ AND-)
2.BINARY 3.RELATIONAL
PREFIX
When increment or decrement operator is used before
the operand.[Change and Use].
POSTFIX
When the Unary operator is used after an operand,
whose value is increased or decreased by 1.[Use and
Change].
BINARY ARITHMETIC OPERATORS
An arithmetic operator, which deals with two operand.
RELATIONAL OPERATORS
These operators are used to check the relationship
among the operands. It compares the value of the
variables and results in terms of ‘TRUE’ or ‘FALSE’.

LOGICAL OPERATOR
Uses three types of logical operators.

1.LOGICAL OR
2.LOGICAL AND
3.LOGICAL NOT
TERNARY OPERATORS (CONDITIONAL ASSIGNMENTS)
Ternary operators deal with three operands. It is also
called conditional assignments statement because the
value assigned to a variable depends upon a logical
expression.

You might also like