|
Re: Math Gone Wrong
To clear up the confusion here, the standard C types have the following ranges:
char: 2^8 (256)
int: 2^16 (65536)
long: 2^32 (4294967296)
The unsigned variety go 0 to (range-1)
The signed go from (-(range/2)) to ((range/2)-1)
Just a FYI
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
|