Binary AND Operator copies a bit to the result if it & exists in both operands. Binary OR Operator copies a bit if it exists in either | operand. Binary XOR Operator copies the bit if it is set in ^ one operand but not both. Binary Ones Complement Operator is unary and has ~ the effect of 'flipping' bits. Binary Left Shift Operator. The left operands value << is moved left by the number of bits specified by the right operand. Binary Right Shift Operator. The left operands >> value is moved right by the number of bits specified by the right operand. Assignment Operators There are following assignment operators supported by C language: Simple assignment operator, Assigns values from = right side operands to left side operand Add AND assignment operator, It adds right += operand to the left operand and assign the result to left operand Subtract AND assignment operator, It subtracts -= right operand from the left operand and assign the result to left operand Multiply AND assignment operator, It multiplies *= right operand with the left operand and assign the result to left operand Divide AND assignment operator, It divides left /= operand with the right operand and assign the result to left operand Modulus AND assignment operator, It takes %= modulus using two operands and assign the result to left operand <<= Left shift AND assignment operator >>= Right shift AND assignment operator &= Bitwise AND assignment operator ^= bitwise exclusive OR and assignment operator
& Binary AND Operator copies a bit to the result if it exists in both operands. | Binary OR Operator copies a bit if it exists in either operand. ^ Binary XOR Operator copies the bit if it is set in one operand but not both. ~ Binary Ones Complement Operator is unary and has the effect of 'flipping' bits. << Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand. >> Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand. Assignment Operators There are following assignment operators supported by C language: = Simple assignment operator, Assigns values from right side operands to left side operand += Add AND assignment operator, It adds right operand to the left operand and assign the result to left operand -= Subtract AND assignment operator, It subtracts right operand from the left operand and assign the result to left operand *= Multiply AND assignment operator, It multiplies right operand with the left operand and assign the result to left operand /= Divide AND assignment operator, It divides left operand with the right operand and assign the result to left operand %= Modulus AND assignment operator, It takes modulus using two operands and assign the result to left operand <<= Left shift AND assignment operator >>= Right shift AND assignment operator &= Bitwise AND assignment operator ^= bitwise exclusive OR and assignment operator