Operators
Operators are special symbols or phrases that programmers use to check, combine or change values.
E.g., '+' is a operator, used to add two values, like 2 +7
There are two types of operators:
Operators are special symbols or phrases that programmers use to check, combine or change values.
E.g., '+' is a operator, used to add two values, like 2 +7
There are two types of operators:
- Unary Operators : Operators on one operand, E.g. -4 , 1x
- Binary Operators : Operators on two operands. E.g 5+7
- Arithmetic Operators
- Relational Operators
- Logical Operators
Arithmetic Operators
It is used to perform arithmetic and mathematical operations.
Examples :-
Relational Operators
Relational operators is used to compare two values or see the relation between values.
Examples :-
Logical Operators
It is used to perform logical operation on values.
Examples :-
0 Comments:
Post a Comment