Because the Char allocate one more bit for '\0'
--
Open WebMail Project (http://openwebmail.org)
---------- Original Message -----------
From: "Engi" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Fri, 8 Aug 2003 17:00:44 +0200
Subject: sizeof
> Hi,
>
> Is someone could explain me this :
>
> sizeof(DateType) = 2
> sizeof(Char) = 1
>
> typedef struct
> {
> DateType date;
> Char value;
> }
> stACTIONS;
>
> sizeof(stACTIONS) = 4 ???
>
> Why sizeof(stACTIONS) is not 3 ?
>
> Engi
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
------- End of Original Message -------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/