Bitwise operators

Bitwise operators ( &, |, ^, ~, <<, >> )

Bitwise operators modify variables considering the bit patterns that represent the values they store.


operatorams equivalentdescription
$ANDBitwise AND
|ORBitwise inclusive OR
^XORBitwise exclusive OR
~NOTUnary complement (bit inversion)
<<SHLShift bits left
>>SHRShift bits right

Note: The keyword asm stands for assembly code.

Comments

Popular posts from this blog

Two ways to add code block in blogger template for composing posts

How to download and install Cambridge Advanced Learner's Dictionary_Fourth Edition-CALD4

αž—ាសាαž€αž˜្មវិαž’ី C++៖ ថេរ