Hint 1: try putting
#pragma warn_padding on
just before that definition.
Hint 2: what is sizeof(InfoType) if you delete the Char name[2]?
At 3:55 PM -0800 1/25/02, Phong Nguyen wrote:
>Hi,
>
>I define a structure as follows:
>
>typedef struct
>{
> Char name[2];
> Char age;
>}
>InfoType;
>
>I expect that sizeof(InfoType) to be 3. However the
>compiler returned sizeof(InfoType) = 4 !!!!.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/