Pages: [1]   Go Down
Author Topic: Documentation correction BitwiseCompoundAnd  (Read 652 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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;
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 71
Posts: 1641
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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;
============================================
Logged

~Tom~

Pages: [1]   Go Up
Jump to: