Bug

Samy hunter@gnet.com.eg
Fri Sep 10 19:53:00 GMT 1999


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



More information about the Gcc-bugs mailing list