Every time a negative unsigned right one , and one mobile 32 mobile 32 results Why not ? ?
For example , -9, each unsigned right one , moving 32 times , the result is 0 ; The results
But 32 is -9 -9 >>>
Please help answer it
------ Solution ------------------------------- -------------
If you move more than the maximum number of digits that type , then the compiler will take more than the median number of moves .
For example:
-9 >>> 32 32% 32 = 0 place. 0 = -9 -9 >>>
-9 >>> 33 32% 33 = 1 place. -9 >>> 1 = 2147483643
You can try all type unsigned int right 32 are unchanged .
------ Solution ---------------------------------------- ----
that every time an unsigned right shift , move 32 should not be the result of what is true . . . . Why is it 0
this truly moved , each move one . Such moves 32 times.
The first shift 32 , equal to the mobile 0 , doing nothing , so intact.
------ For reference only ---------------------------------- -----
not sink amount
------ For reference only -------------------------- -------------
every time that an unsigned right shift , move 32 should not be the result of what is true . . . . Why is 0 then
------ For reference only ---------------------------------- -----
Every time that an unsigned right shift , move 32 should not be the result of what is true . . . . Why is it
0
没有评论:
发表评论