Hello,
So, the
unsigned char c = -1; // c has value 255
Why is that, on a bit level? Negative sign would set the highest bit to 1, and 1 would set the lowest bit to 1: 10000001 which is 129.
Thanks.
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 9 of 9
Threaded View
|
Click Here to Expand Forum to Full Width |