WR Home      Topic Home      Chapter:  1  2  3 
<Previous Next>

Chapter 03

Commonly used bit-manipulation functions

Page 11

Some Questions on Bit Manipulation


Question: The “size of” an “int” is not always 16 bits.
On some computer architecture/compiler combination it may be 32 bits.
On some computer architecture/compiler combination it may be 20 bits (old days of costly memory!)

For an unknown computer architecture/compiler combination:
Without using the sizeof() function find the size of an “unsigned int” in number of bits.


WR Home      Topic Home      Chapter:  1  2  3 
<Previous Next>