posted 11 years ago
As i try to add a f behind 0xffffffff,the compiler response a error,int is out of range.
right,because int has 32 bits. the output is right .
11111111111111111111111111111111
as i try to add a f behind 0xffffffff,the compiler response a error too,int is out of range.
why does compiler look 0xfffffff as a int?
the output is 1111111111111111111111111111111111111111111111111111111111111111.
since 0xffffffff has 32bits,why the output has 64bits "1"?
the output is right 1111111111111111111111111111111111111111111111111111111111111111.
thanks a lot!