I have maaaaaaaany difficulties in understanding the Bitwise Operators. In fact i understand nothing
Here are my questions on some statements:
what the bold means, and what's the value of displayMask?Code:unsiged c, displayMask = 1 << 31;
value is an unsigned integer.Code:putchar( value & displayMask ? '1' : '0' );
1) What the result of the comparison? I mean, shouldn't be something like that:
value & displayMask == 1 ? .. : ...
2)What does the comparison do? How it compares the bits of the two operands, and where does it know the bits of the unsigned "value"?
What does this do??, what's the new value of "value"?Code:value <<= 1;
Thanks in advance?