The left operands value is moved right by the number of bits specified by the right operand. If a condition is true then Logical NOT operator will make false.Īssume variable A holds 60 and variable B holds 13 then −īinary AND Operator copies a bit to the result if it exists in both operands.īinary OR Operator copies a bit if it exists in either operandīinary XOR Operator copies the bit if it is set in one operand but not both.īinary Ones Complement Operator is unary and has the effect of 'flipping' bits.īinary Right Shift Operator.
Use to reverses the logical state of its operand. If any of the two operands is non-zero then then condition becomes true.Ĭalled Logical NOT Operator. If both the operands are non-zero then then condition becomes true.Ĭalled Logical OR Operator. Modulus Operator and remainder of after an integer divisionĬhecks if the value of two operands is equal or not, if yes then condition becomes true.Ĭhecks if the value of two operands is equal or not, if values are not equal then condition becomes true.Ĭhecks if the value of left operand is greater than the value of right operand, if yes then condition becomes true.Ĭhecks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true.Ĭalled Logical AND operator.
Stores the value to the right of the equal sign in the variable to the left of the equal sign. C language is rich in built-in operators and provides the following types of operators −Īssume variable A holds 10 and variable B holds 20 then − An operator is a symbol that tells the compiler to perform specific mathematical or logical functions.