K
Keith Thompson
CBFalconer said:Chapter and verse please. I think you can come to this conclusion
only by making some earlier assumptions about the memory system.
AFAIK the only stricture is that malloc returns an address aligned
for ALL types.
C99 3.2:
alignment
requirement that objects of a particular type be located on
storage boundaries with addresses that are particular multiples of
a byte address
As has been discussed here, this glosses over just what it means for
an address to be a "multiple" of a byte address, but it seems to allow
for alignments like 2N while excluding alignments like 2N+1.