Go Down

Topic: Documentation correction BitwiseCompoundAnd (Read 718 times) previous topic - next topic

Michael701

at the bottom of the page it states:
-----------------------------------------------
So if:
myByte =  10101010;

myByte &= B1111100 == B10101000;
-----------------------------------------------
This should have a 'B' in the second line
-----------------------------------------------
So if:
myByte =  B10101010;

myByte &= B1111100 == B10101000;

Tom Carpenter

Further more, there is a bit missing, so really it should be either:
==========================================
So if:
myByte =  B10101010;

myByte &= B1111100 == B00101000;
===========================================

or:
===========================================
So if:
myByte =  B10101010;

myByte &= B11111100 == B10101000;
============================================
~Tom~

Go Up