This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]