|
|||||
| | |||||
the signed values use the high-most bit for a sign, so numbers are limited to 127 to -127 for signed and to 255 for unsigned
signed integers are not always reproducible straight from 010101 by two's conversion, but may also be stored in (as) twos complement, ones complement, sign-magnitude. This can lead to portability problems as on different systems the unsigned integers are represented differently.
it is usually best therefore to use the unsigned type to perform integer conversions
if the programmer performs bitwise operations on numbers, results may not be as expected when signed types are used
you know of course the bitwise operators are different from the logical operators...
bit arrays are bit arrays, not of predefined types, on which bit operations will be performed
memset operates on bit arrays, zeroing out all the bits
| Leave a Reply |