interesting struct???????????

Ashok Das ashok_s_das@hotmail.com
Wed Oct 18 08:11:00 GMT 2000


hi,
Sorry wheather it is the right place or not..
i found something interesting..

gcc-2.95(RH 6.2) shows this...

struct x{
         int a;
          char b;
         };
  sizeof(struct x) gives 8 why??

but struct x{
             int a;
              char b;
              char c;
              char d;
              char e;
             }
gives a size of 8 too???????????/

how????

Ashok



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .

Share information about yourself, create your own public profile at 
http://profiles.msn.com .



More information about the Gcc-bugs mailing list