
13 Mar
2005
13 Mar
'05
8:16 p.m.
Thorsten Ottosen wrote:
"Peter Dimov" <pdimov@mmltd.net> wrote in message news:00aa01c52800$a3257820$6501a8c0@pdimov2...
Technically, it's still not enough; sizeof gives you the size of the object in chars, not the number of value bits.
just so I get this, you're saying that even though sizeof( int ) == 4, the implementation could choose to use only the first two bytes for the representation?
Or the middle 24 bits, yes. Integers are allowed to have padding. Same with pointers.