At 5:02 PM -0800 1/25/02, Joe wrote:
>--- Phong Nguyen wrote:
>>  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 !!!!.
>
>The processors currently used by Palm OS devices do not allow
>addressing of odd-numbered bytes,

Sure they do!  How else would it access name[1]?

-- Keith

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to