Operators
In mathematics and computer programming, an operator is a character that represents a specific mathematical or logical action or process.
For Example:
+,-,*,/,%,>,< and etc
Types of Operators
there are some types of Operators are as follow
- Logical Operators
- Arithmetic Operators
- Assignment Operators
- Relational Operators
- Comparison Operators
- Ternary Operators
- increment/decrement Operators.
Logical Operators:
The Logical operator have And, Or ,and Not Operators
The Arithmetic Operators includes the addition(+),Subtraction(-),Multiplication(*),Division(/) and the Modulus(%).
Assignment Operators:
Assignment Operators include the Equal to sign(=). It Assign the value of the Right side variable to the left side variable.
e.g a=5;
Relational Operators:Relational Operators are used to Compare two values with respect to each other. it includes <,>,<=,>=,!= and == symbols to compare any value.
Ternary Operators:
Ternary Operators are used when we want to implement the condition on a single statement and depend upon the value it is true or not .if true one statement will execute and other wise the other statement will execute.
Increment and Decrement operators are used to increase or decrease the value of a variable. these are mostly used in loops to fulfil the certain conditions.