1.Arithmetic operator
2.Relational operator
3.Bitwise operator
4.assignment operator
5.Logical Operator
1.Aerithmetic operator:
Their are certain aerithmetic operator which are as follows:
[+]:- It adds the two operands value.
[-]:- It subtracts second operand from the first operand.
[*]:- Multiplies both the operands.
[/]:- Divides the numerator by denumerator.
[%]:-Modulos operator return remainder after an integer divison.
2.Relational Operator:
Their are certain Relational operator which are as follows:
[==]:- Checks if the values of both the operands are equal or not.
[!=]:- Checks if the value of two operands are equal or not,if it is not equal then condition becomes true.
[>]:- Check the value of left operand is greater than the value of right operand.
[<]:Check the value of right operand is greater than the value of left operand.
3.Bitwise Operator:
Their are certain Bitwise operator which are as follows:
[&-Bitwise And]:-Bitwise AND Operator copies a bit to the result if it exists in both operands.
[|-Bitwise Or]:-Bitwise OR Operator copies a bit if it exists in either operand.
[^-Bitwise XOR]:-Bitwise XOR Operator copies the bit if it is set in one operand but not both.
[~-Bitwise one's]:- Bitwise One's Complement Operator is unary and has the effect of 'flipping' bits.
[<<- Bitwise left operator]: Complement Operator is unary and has the effect of 'flipping' bits.
[>>- Bitwise right operator]:-The left operands value is moved right by the number of bits specified by the right operand.
4].Assignment Operator:-
Their are certain Assignment operator which are as follows:
[=]:- Assigns values from right side operands to left side operand.
[+=]:- It adds the right operand to the left operand and assign the result to the left operand.
[-=]:- It subtracts the right operand from the left operand and assigns the result to the left operand.
[*=] :- It multiplies the right operand with the left operand and assigns the result to the left operand..
[/=]:- It divides the left operand with the right operand and assigns the result to the left operand.
[%=]:- It takes modulus using two operands and assigns the result to the left operand.
5].Logical Operator:
Their are certain Logical operator which are as follows:
[&&]:-If both the operands are non-zero, then the condition becomes true.
[||]:-If any of the two operands is non-zero, then the condition becomes true.
[!]:- It is used to reverse the logical state of its operand. If a condition is true, then Logical NOT operator will make it false.
EmoticonEmoticon