+ 2

Who can give me a proper or useful example of how we can use bitwise operators?

13th May 2020, 1:21 AM
Xavier K Muneku 🇿🇲
Xavier K Muneku 🇿🇲 - avatar
3 odpowiedzi
+ 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).
13th May 2020, 1:27 AM
Satyam Patel
Satyam Patel - avatar
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.
13th May 2020, 11:39 AM
pratham yadav
pratham yadav - avatar