Re: Finding number of bits of integer
Ben Bacarisse said:
<snip>
> It is probably worth adding the reason one uses an unsigned integer
> type is that shift operations are well-defined on these, and the
> reason one uses unsigned char in particular is that it is guaranteed
> not to have any padding bits.
It is indeed worth adding. Thank you.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
|