Hi ,
I've gcc (egcs-2.91.66) running on Red Hat Linux 6.0 .
and i've the following problem :
struct test {
char i; // one byte
int b; // 4 bytes and total is 5
bytes
}test;
int main (void)
{
printf("%d",sizeof(test));
}
and the result is
8 .
so can you explain it please
Thanks
Samy