It's called "padding" and it's added by the compiler to bring everything up
to even byte boundaries...
Cheers,
Gavin.
>Hi!
>
>
>I'm define my source below that
>
>
>int size;
>
>typedef struct test
>{
> char data1[10];
> char data2[1];
>}my_test;
>
>size = sizeof(my_test);
>
>
>I guess the value of size is "11" but, size value is "12"
>
>
>What's wrong???
>
>I'm using CodeWarrior 7.
>Please Help....
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/