John suggested: > Make an array of structures and find the difference in > addresses of 2 > consecutive array elements.
OK, that would include not only intra-structure padding, but also inter-structure padding, which my method probably wouldn't show up (unless the padding were zeroed or something by the compiler; unlikely). Sizeof should return the fully-padded value so it can be used to allocate memory for arrays. So John's method is more likely to tie up with what sizeof returns than my rather crude hack. David
