When the value exceeds the size of the 32 bit integer, it wraps around.
To prove this, I did this:
0xFFFFFFFF + 1
Result = 0
0xFFFFFFFF + 10
Result = 9.
The result (32 bit integer) is shifted 8 bytes to the right.
|
Results 1 to 5 of 5
Thread: [RESOLVED] Bit Shifting with CThreaded View
|
Click Here to Expand Forum to Full Width |