+ 2
Who can give me a proper or useful example of how we can use bitwise operators?
3 Respuestas
+ 2
These operators are used to perform bit operations. Decimal values are converted into binary values which are the sequence of bits and bit wise operators work on these bits.
Bit wise operators in C language are & (bitwise AND), | (bitwise OR), ~ (bitwise NOT), ^ (XOR), << (left shift) and >> (right shift).
0
Bitwise operators are used to change individual bits in an operand. A single byte of computer memory when viewed as 8 bits-can signify the true/false status of 8 flags because each bit can be used as a boolean variable that can hold one of two values: true or false.