Operators
, Operators
• Operators in C is a special symbol used to perform the functions.
• Operators are used to perform operations on variables and
values.
• The data items on which the operators are applied are known as
operands.
• Operators are applied between the operands.
• Depending on the number of operands, operators are classified as
follows:
• Unary Operator:
• A unary operator is an operator applied to the single operand. For
example: increment operator (++), decrement operator (--), sizeof,
(type)*.
• Binary Operator
• The binary operator is an operator applied between two operands.
, C divides the operators into the
following groups:
Arithmetic operators
Assignment operators
Comparison operators
Logical operators
Bitwise operators
, Operators
• Operators in C is a special symbol used to perform the functions.
• Operators are used to perform operations on variables and
values.
• The data items on which the operators are applied are known as
operands.
• Operators are applied between the operands.
• Depending on the number of operands, operators are classified as
follows:
• Unary Operator:
• A unary operator is an operator applied to the single operand. For
example: increment operator (++), decrement operator (--), sizeof,
(type)*.
• Binary Operator
• The binary operator is an operator applied between two operands.
, C divides the operators into the
following groups:
Arithmetic operators
Assignment operators
Comparison operators
Logical operators
Bitwise operators